首页 > 解决方案 > iOS 15 - Xcode 13-RC 警告:-[NSKeyedUnarchiver validateAllowedClass:forKey:]

问题描述

我安装了新的 Xcode 13-RC,在我的项目中,我在控制台中收到了下一个警告:

2021-09-15 17:30:06.305218+0100 MYProject[511:30187] [general] *** -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1f6902270) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.keys', even though it was not explicitly included in the client allowed classes set: '{(
    "'NSDate' (0x1f68f7640) [/System/Library/Frameworks/CoreFoundation.framework]",
    "'NSDictionary' (0x1f68f77a8) [/System/Library/Frameworks/CoreFoundation.framework]"
)}'. This will be disallowed in the future.

有人知道那是什么吗?

标签: iosswiftfirebaseios15xcode13

解决方案


我们也看到了这一点,并将其追溯到 Firebase Crashlytics 库。我认为除了在他们最终修补后更新之外我们无能为力。Github 问题

编辑:这已在最新版本的 Crashlytics 中得到修复。


推荐阅读