【问题标题】:dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire error on device iOS 9 , not able to compiledyld:库未加载:设备 iOS 9 上的@rpath/Alamofire.framework/Alamofire 错误,无法编译
【发布时间】:2016-06-23 22:57:35
【问题描述】:

我正在使用适用于 iOS 的“Google 分析”SDK。 sdk强迫我将Enable bitcodeYes设置为NO

当我禁用位码时,我的设备 (iOS 9) 上出现编译错误,但模拟器上没有 dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: /var/mobile/Containers/Bundle/Application/940F4D49-6239-4645-9FAE-99D482BFA1C4/Skip It.app/Skip It Reason: image not found

我通过 cocoaPods 添加了 Alamofire。为了解决上述错误,我在“Linked Framworks and Libraries”中添加了Alamofire框架并使其成为可选,如截图

现在我可以在我的设备 (iOS 9) 上运行应用程序,但是每当代码使用其他可选框架的 Alamofire 时,应用程序就会崩溃。

我无法找到解决方案。我google了很多,但没有用。请有人帮忙

【问题讨论】:

  • 您提供了更多关于您已经解决的问题的详细信息,而不是您当前遇到的问题。我没有看到任何人可以帮助解决“应用程序崩溃”问题。

标签: ios compiler-errors ios9 xcode7.2


【解决方案1】:

同样的问题 - 应用在模拟器中运行良好,但在设备上崩溃并出现同样的错误。

就我而言,是缺少Apple WWDR Intermediate Certificate 导致了问题。无法验证开发证书,因此配置文件被拒绝并且设备抛出此错误。

我下载并安装了 Apple 的 WWDR 中级证书,错误消失了。

因此请检查并确保您的钥匙串具有所有必要的证书,并且没有任何遗漏或过期。

【讨论】:

    猜你喜欢
    • 2019-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-18
    • 2020-06-15
    • 1970-01-01
    • 2015-06-01
    • 2016-05-24
    相关资源
    最近更新 更多