【问题标题】:No suitable image found for iPhone5's architecture没有找到适合 iPhone5 架构的图片
【发布时间】:2015-08-03 23:23:50
【问题描述】:

我正在使用 Xcode6.4 和 Cocoapods 0.38.2。 当我通过 Cocoapods 使用 Alamofire 时,会发生一些错误。

当我使用 iPhone6(iOS8.4) 时,一切都很好。我可以编译和使用 Alamofire。 但是当我使用 iPhone5(iOS8.4) 时,即使我可以编译没有错误,我也会得到如下错误。

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
  Referenced from: /private/var/mobile/Containers/Bundle/Application/AA92A24D-B208-46E8-8C08-1532116C9C64/knews.app/knews
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/AA92A24D-B208-46E8-8C08-1532116C9C64/knews.app/Frameworks/Alamofire.framework/Alamofire: mach-o, but wrong architecture
    /private/var/mobile/Containers/Bundle/Application/AA92A24D-B208-46E8-8C08-1532116C9C64/knews.app/Frameworks/Alamofire.framework/Alamofire: mach-o, but wrong architecture
    /private/var/mobile/Containers/Bundle/Application/AA92A24D-B208-46E8-8C08-1532116C9C64/knews.app/Frameworks/Alamofire.framework/Alamofire: mach-o, but wrong architecture

我不知道这个问题是什么时候发生的,但我可以在 iPhone5 上使用 cocoapods 和 Amamofire。

请帮忙。

其实我什至不知道该放什么样的信息。

谢谢,

【问题讨论】:

    标签: ios iphone swift cocoapods alamofire


    【解决方案1】:

    我创建了新的 Xcode 项目并复制了所有文件。 (并尽可能使配置文件与旧配置文件相同)

    我可以在 iPhone6 和 iPhone5 上编译和运行我的应用程序。

    所以我不知道原因。不过现在我的问题解决了。

    【讨论】:

      【解决方案2】:

      正如here所说,我嵌入了所有由Cocoapods生成的框架,我终于可以在iPhone5上运行我的应用了。

      但是当我尝试上传二进制文件以提交给 Apple 时,我需要 64 位二进制文​​件,我无法上传我的二进制文件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-12-20
        • 2015-01-22
        • 1970-01-01
        • 2018-07-08
        • 2015-11-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多