用于Cocoapods库的架构armv7的未定义符号

时间:2014-12-04 04:18:52

标签: ios xcode cocoapods armv7 xcode-project

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

enter image description here

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

到目前为止我做了什么:

  • 清理项目并重新构建。
  • 删除Cocoapods相关文件并再次运行pod install
  • 尝试在Project Target中的Compile Sources中添加类,但不能。该课程位于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.

提前致谢。

2 个答案:

答案 0 :(得分:71)

您似乎在其他LINKER FLAGS中没有$(inherited)。请发布pod install

的输出

答案 1 :(得分:1)

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

enter image description here