我偶然发现了一个我需要处理的项目的问题。该项目使用 Cocoapods 来管理其库。我pod install
像往常一样开始跑步,但 xcode 给了我错误。我得到了Undefined symbols for architecture armv7
,如下图所示:
所有这些符号都是我在项目中使用的库。例如。AFNetworking,RNBlurModalView。我试图从项目中删除所有与 Cocoapods 相关的文件并pod install
再次运行,但仍然没有解决问题。
到目前为止我做了什么:
- 清理项目并再次构建。
- 删除 Cocoapods 相关文件并
pod install
再次运行。 - 试图在项目目标的编译源中添加类,但不能。该类位于 Pods 工作区中。
- 将“仅构建活动架构”设置
YES
为NO
。
我也尝试了相同问题的解决方案,但没有一个对我有用。
如果有帮助,我正在使用 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.
提前致谢。