我可以在IOS 8中成功运行我的应用程序,但在IOS 7中,我的应用程序崩溃了。
消息是:
dyld: Library not loaded: /System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication
Referenced from: /Users/burakkilic/Library/Developer/CoreSimulator/Devices/A0210158-BC6C-43AA-9D85-AA8DE6115AAA/data/Applications/xxx
Reason: no suitable image found. Did find:
/System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication: mach-o, but wrong architecture
我该如何解决?
答案 0 :(得分:0)
您可以弱链接 LocalAuthentication.framework
并在运行时有条件地访问LocalAuthentication
API。
后者可以通过以下任何一种方式完成:
respondsToSelector
等)。