找不到适合 iPhone5 建筑的图片

No suitable image found for iPhone5's architecture

我正在使用 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

我不确切知道这个问题是什么时候发生的,但我不久前可以将 cocoapods 和 Amamofire 与 iPhone5 一起使用。

请帮忙。

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

谢谢,

如前所述 here,我嵌入了 Cocoapods 生成的所有框架,我终于可以 运行 我的应用程序 iPhone5。

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

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

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

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