在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。


网友评论