iphone – dyld:未加载库:SystemLibraryFrameworksAccounts.frameworkAccounts

iphone – dyld:未加载库:SystemLibraryFrameworksAccounts.frameworkAccounts,第1张

概述我在iOS模拟器4.2 / 4.3上运行应用程序时收到以下错误.它适用于iOS 5. dyld: Library not loaded: /System/Library/Frameworks/Accounts.framework/Accounts Referenced from: /Users/User/Library/Application Support/iPhone Simulator/ 我在iOS模拟器4.2 / 4.3上运行应用程序时收到以下错误.它适用于iOS 5.

dyld: library not loaded: /System/library/Frameworks/Accounts.framework/Accounts  Referenced from: /Users/User/library/Application Support/iPhone Simulator/4.3/Applications/FBFD053F-E816-4114-AFEB-D90A6A67259B/SampleApp.app/SampleApp  Reason: image not found

我在我的应用程序中使用AssetsLibrary和OpenCV框架.
我没有得到错误的原因.

解决方法 您收到此错误的原因是Accounts.framework仅在iOS 5.0或更高版本中可用.所以你无法在iOS 4.2 / 4.3上运行它.

您还可以将Accounts.framework标记为可选.在Xcode中,选择Targets>构建阶段>链接二进制库> Accounts.framework并标记为可选.

另外,请确保在iOS 4.3中跳过此代码(需要iOS 5.0或更高版本的代码).您可以使用以下代码来检查:

Nsstring *reqsysVer = @"5.0";Nsstring *currSysver = [[UIDevice currentDevice] systemVersion];if ([currSysver compare:reqsysVer options:NSNumericSearch] != NSOrderedAscending) {     //Add any code that requires iOS 5.0}
总结

以上是内存溢出为你收集整理的iphone – dyld:未加载库:/System/Library/Frameworks/Accounts.framework/Accounts全部内容,希望文章能够帮你解决iphone – dyld:未加载库:/System/Library/Frameworks/Accounts.framework/Accounts所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1027615.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-23
下一篇2022-05-23

发表评论

登录后才能评论

评论列表(0条)

    保存