unrecognized selector sent to class
具体Crash代码
objc[21999]: Class ZipArchive is implemented in both ... One of the two will be used. Which one is undefined.
...
2019-10-23 14:58:03.184419+0800 XXX[21999:2011761] SG ERROR: 203
2019-10-23 14:58:03.204103+0800 XXX[21999:2011774] +[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x1c92d3d58
2019-10-23 14:59:18.674094+0800 XXX[21999:2012167] NSURLConnection finished with error - code -1001
2019-10-23 14:59:18.677327+0800 XXX[21999:2011774] *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '+[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x1c92d3d58'
...
(lldb)
解决方法
检查项目中是否集成过其它的阿里云的产品,例如:无线保镖或人脸识别AliRPSDK 。
里面有用到依赖:
SecurityGuardSDK.framework
SGMain.framework
即更新一下到最新版本即可 。