归档,解档的过程中,出现如下的报警信息
'''
[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x7ff84325e1c8) [/Library/Developer/CoreSimulator/Volumes/iOS_22B81/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework]' for key 'longitude', even though it was not explicitly included in the client allowed classes set: '{(
"'SKLoginPointModel' (0x10575cfd8) [/Users/liuhuaixuan/Library/Developer/CoreSimulator/Devices/4175D09A-6768-49FA-B354-63C51F52BBAB/data/Containers/Bundle/Application/BDEDD582-2FD2-471D-B15C-EF5125F3FEE3/SakuCash.app]"
)}'. This will be disallowed in the future.
'''
解决方法
在SKLoginPointModel的.m文件中,将解档的longitude的类型设置一下
,如下
self.longitude = [decoder decodeObjectOfClass:[NSString class] forKey:@"longitude"];
其他的相似的做一下就可以了