flurry / flurry-ios-sdk

Flurry iOS SDK CocoaPods
Apache License 2.0
155 stars 65 forks source link

[NSKeyedUnarchiver validateAllowedClass:forKey:] warnings in console #238

Open deni2s opened 2 years ago

deni2s commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of Flurry SDK, XCode, and iOS you are using.

To Reproduce Steps to reproduce the behavior:

  1. Running the app with Flurry integrated
  2. In console observe:

2021-12-25 19:35:25.850870+0200 Test[7195:2678270] [general] -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1dadcf6e8) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.keys', even though it was not explicitly included in the client allowed classes set: '{( "'NSMutableDictionary' (0x1dadc48e0) [/System/Library/Frameworks/CoreFoundation.framework]", "'NSArray' (0x1dadc4a48) [/System/Library/Frameworks/CoreFoundation.framework]", "'FlurryDataSenderBlockInfo' (0x101258d30) [/var/containers/Bundle/Application/8734DC70-B33E-45CA-9EFE-F10DF6502450/Test.app/Frameworks/Flurry_iOS_SDK.framework]" )}'. This will be disallowed in the future. 2021-12-25 19:35:25.851145+0200 Test[7195:2678270] [general] -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1dadcf6e8) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.keys', even though it was not explicitly included in the client allowed classes set: '{( "'NSMutableDictionary' (0x1dadc48e0) [/System/Library/Frameworks/CoreFoundation.framework]", "'NSArray' (0x1dadc4a48) [/System/Library/Frameworks/CoreFoundation.framework]", "'FlurryDataSenderBlockInfo' (0x101258d30) [/var/containers/Bundle/Application/8734DC70-B33E-45CA-9EFE-F10DF6502450/Test.app/Frameworks/Flurry_iOS_SDK.framework]" )}'. This will be disallowed in the future. 2021-12-25 19:35:25.851737+0200 Test[7195:2678248] -[FlurryPaymentTransactionDataProvider setIAPReportingEnabled:]: StoreKit framework needs to be linked in to enable IAP reporting 2021-12-25 19:35:25.852147+0200 Test[7195:2678248] Flurry: Starting session on Agent Version [Flurry_iOS_279_11.4.0] 2021-12-25 19:35:25.924202+0200 Test[7195:2678276] [general] *** -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSNumber' (0x1dadcfe40) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.objects', even though it was not explicitly included in the client allowed classes set: '{( "'NSCFString' (0x1dadc4390) [/System/Library/Frameworks/CoreFoundation.framework]", "'NSString' (0x1dadcf6e8) [/System/Library/Frameworks/Foundation.framework]", "'NSCFNumber' (0x1dadc4408) [/System/Library/Frameworks/CoreFoundation.framework]", "'NSDictionary' (0x1dadc4c28) [/System/Library/Frameworks/CoreFoundation.framework]", "'Swift.__StringStorage' (0x1dadf3968) [/usr/lib/swift]" )}'. This will be disallowed in the future.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Are you using Flurry Push/Messaging? Yes / No No

(iOS) Are you using CocoaPods or manual binary integration? Yes / No CocoaPods

Add any other context about the problem here. Had the same with Flurry 11.2.1. Pretty sure it worked fine some time ago (with earlier Xcode/iOS SDK version).

hantao-flurrydev commented 2 years ago

Hi @deni2s, the fix will be out in the next release. Thanks for your report.

antongaenko commented 2 years ago

Hi, is any solution? I'm getting these warnings in 11.4.1 installed with SPM

[general] *** -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1f5446358) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.keys', even though it was not explicitly included in the client allowed classes set: '{(
    "'FlurryDataSenderBlockInfo' (0x102cf1e20) [/private/var/containers/Bundle/Application/669B7E90-4534-4ADC-88CC-B695F56787D0/h.app]",
    "'NSMutableDictionary' (0x1f543b4e0) [/System/Library/Frameworks/CoreFoundation.framework]",
    "'NSArray' (0x1f543b648) [/System/Library/Frameworks/CoreFoundation.framework]"
)}'. This will be disallowed in the future.
hantao-flurrydev commented 2 years ago

@deni2s @antongaenko The fix was released along with 12.0.0