【问题标题】:Undefined symbols for architecture armv7 for Cocoapods librariesCocoapods 库的架构 armv7 的未定义符号
【发布时间】:2014-12-04 04:18:51
【问题描述】:

我偶然发现了一个我需要处理的项目的问题。该项目使用 Cocoapods 来管理其库。我像往常一样运行pod install 开始,但xcode 给了我错误。我收到了Undefined symbols for architecture armv7,如下图所示:

所有这些符号都是我在项目中使用的库。例如。 AFNetworking,RNBlurModalView。我试图从项目中删除所有 Cocoapods 相关文件并再次运行pod install,但仍然没有解决问题。

到目前为止我做了什么:

  • 清理项目并重新构建。
  • 删除 Cocoapods 相关文件并再次运行 pod install
  • 试图在项目目标的编译源中添加类,但不能。该类位于 Pods 工作区中。
  • 将“仅构建活动架构”从 YES 设置为 NO

我也尝试了same problem 的解决方案,但没有一个对我有用。

如果有帮助,我正在使用 xCode6 和 Cocoapods 0.34.4。项目有效架构为armv7 and armv7s

更新:运行时pod install --verbose

Integrating client project

Integrating target `Pods` (`AIYOCore.xcodeproj` project)

[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile:

    source 'https://github.com/CocoaPods/Specs.git'


[!] The `Project [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `Project [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

提前致谢。

【问题讨论】:

    标签: ios xcode cocoapods armv7 xcode-project


    【解决方案1】:

    您的其他链接器标志中似乎没有$(inherited)。请发布pod install的输出

    【讨论】:

    • 嗨,我刚刚用我认为相关的部分日志更新了我的问题。介意看看吗?
    • 正如我之前写的,在 OTHER_LDFLAGS 中为所有目标添加 $(inherited) 作为第一行
    • 谢谢!解决了我的问题
    • 无视警告的习惯!该死!
    • 我偶然发现了同样的问题,我添加了 $(inherited) 并且它不起作用.. 仍然显示上面的错误。但我只能用 arm64 构建..知道为什么这仍然出现吗?
    【解决方案2】:

    您可能只需要清理构建文件夹 (⌥⇧⌘K)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-29
      • 2011-09-19
      • 1970-01-01
      • 1970-01-01
      • 2013-03-16
      • 2012-06-11
      相关资源
      最近更新 更多