Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

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

Open
2 of 11 tasks
deni2s opened this issue Dec 25, 2021 · 3 comments
Open
2 of 11 tasks

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

deni2s opened this issue Dec 25, 2021 · 3 comments
Assignees
Labels

Comments

@deni2s
Copy link

deni2s commented Dec 25, 2021

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].

  • Integration
  • Analytics
  • Ads
  • Messaging/Push
  • IAP
  • Remote Configuration
  • Flurry Website/Dashboard
  • Other

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

  • iOS
  • tvOS
  • WatchOS

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

  • Flurry SDK: 14.4.0
  • XCode: 13.2
  • iOS: 15

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
Copy link
Contributor

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

@antongaenko
Copy link

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
Copy link
Contributor

@deni2s @antongaenko The fix was released along with 12.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants