美文网首页
iOS11启动崩溃 Reason: no suitable im

iOS11启动崩溃 Reason: no suitable im

作者: 生命不止运动不息 | 来源:发表于2021-01-21 17:43 被阅读0次

在iOS11下。App启动就崩溃,AppDelegate都没进。

在ios12以上都正常。 猜测是动态库问题,最后拿demo把项目的库都加进去,果然发现崩溃。
就是:AuthenticationServices.framework的问题。

错误如下

dyld: Library not loaded: /System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices
Referenced from: /Users/cgw/Library/Developer/CoreSimulator/Devices/1204D169-4581-41AF-9409-668E21BF7293/data/Containers/Bundle/Application/107D64DC-9247-4912-A366-33E9D719D4BC/TestLaidaCrash.app/TestLaidaCrash
Reason: no suitable image found. Did find:
/System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices: mach-o, but not built for iOS simulator

解决方案:很简单,把AuthenticationServices.framework后面的required改为optional。

解决方法 错误图

相关文章

网友评论

      本文标题:iOS11启动崩溃 Reason: no suitable im

      本文链接:https://www.haomeiwen.com/subject/kcedzktx.html