【问题标题】:iOS app won't build for iPad Air without 'armv7s' as a valid architecture如果没有“armv7s”作为有效架构,iOS 应用将无法为 iPad Air 构建
【发布时间】:2014-01-25 16:36:13
【问题描述】:

我有一个依赖于 Google Maps iOS SDK 的 iPad 应用。 Google Maps SDK 是作为 cocoapod 添加的,它不会针对“armv7s”架构进行编译,因此当我第一次创建项目时,我已将“armv7s”作为有效架构删除。

现在,当我尝试为 iPad Air 构建应用程序时,我得到以下信息:

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7).

如果我将“ONLY_ACTIVE_ARCH”设置为“NO”,cocoapods 将出现大量问题(所有 pod 都会出现“未定义的架构符号”问题)。如果我将“armv7s”添加为有效拱门,Google 地图将无法构建。我知道可以在 iPad Air 上使用 Google 地图,但我想不通。我必须在设置中进行哪些更改?

【问题讨论】:

    标签: ios xcode5 cocoapods


    【解决方案1】:

    According to this closely related questionGoogle Maps SDK now has support for armv7s and if you pick up the latest version (which is 1.6.1 as I type this),你应该没问题。

    我假设在 SDK 和您自己的代码中都支持“armv7s”,您可以继续将“ONLY_ACTIVE_ARCH”设置为“YES”。

    【讨论】:

    • 就像我说的,“谷歌地图”不会建立。在 Google Maps SDK 页面上,它说您不能将“armv7s”作为架构之一。具体错误是:“ld:文件是通用的(2片)但不包含(n)armv7s片:/Users/.../Pods/Google-Maps-iOS-SDK/GoogleMaps.framework/GoogleMaps文件'/用户/.../Pods/Google-Maps-iOS-SDK/GoogleMaps.framework/GoogleMaps' for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)"
    猜你喜欢
    • 2014-06-03
    • 2012-09-14
    • 1970-01-01
    • 2018-08-02
    • 1970-01-01
    • 2021-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多