aws-sdk-ios icon indicating copy to clipboard operation
aws-sdk-ios copied to clipboard

An error/warning about NSKeyedUnarchiver

Open KyleXie opened this issue 2 years ago • 2 comments

Describe the bug Every time when I switch my app to background mode, I see a lot of errors/warnings from the console like this:

 *** -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1dedef9a8) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.keys', even though it was not explicitly included in the client allowed classes set: '{(
    "'NSMutableString' (0x1dedeeb70) [/System/Library/Frameworks/Foundation.framework]",
    "'NSDictionary' (0x1dede4d10) [/System/Library/Frameworks/CoreFoundation.framework]"
)}'. This will be disallowed in the future.

Expected Behavior No errors happen when switching app to background mode.

Stack Trace I added a breakpoint, it points to this place: image

Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)? Pinpoint

Environment(please complete the following information):

  • SDK Version: 2.27.11
  • Dependency Manager: Swift Package
  • Swift Version : 5.5
  • Xcode Version: 13.4

Device Information (please complete the following information):

  • Device: iPhone 12
  • iOS Version: iOS 15.5

KyleXie avatar Jul 11 '22 07:07 KyleXie

Thanks for opening this issue @KyleXie. We'll look into it and follow up here with any updates.

atierian avatar Jul 26 '22 20:07 atierian

Up

yuryks avatar Aug 25 '22 07:08 yuryks

This has been fixed in 2.28.1.

ruisebas avatar Oct 28 '22 15:10 ruisebas