xcode Cocoapods 库架构 armv7 的未定义符号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27286226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Undefined symbols for architecture armv7 for Cocoapods libraries
提问by Faiz Mokhtar
I stumbled upon a problem on a project that I need to work on. The project use Cocoapods for managing its libraries. I run pod install
as usual to get started but xcode give me errors. I got Undefined symbols for architecture armv7
as you can see in the image below:
我在需要处理的项目中偶然发现了一个问题。该项目使用 Cocoapods 来管理其库。我pod install
像往常一样运行开始,但 xcode 给我错误。我得到了Undefined symbols for architecture armv7
如下图所示:
All this symbols are the libraries that I use with my project. Eg. AFNetworking, RNBlurModalView. I tried to remove all the Cocoapods related file from the project and running pod install
again, but it still doesn't solved the problem.
所有这些符号都是我在项目中使用的库。例如。AFNetworking,RNBlurModalView。我试图从项目中删除所有与 Cocoapods 相关的文件并pod install
再次运行,但它仍然没有解决问题。
What I have done so far:
到目前为止我做了什么:
- Clean the project and build again.
- Removing Cocoapods related files and running
pod install
again. - Tried to add the class in Compile Sources in Project Target, but can't. The class is in Pods workspace.
- Set Build Active Architecture Only from
YES
toNO
.
- 清理项目并重新构建。
- 删除 Cocoapods 相关文件并
pod install
再次运行。 - 试图在项目目标的编译源中添加类,但不能。该类位于 Pods 工作区中。
- 将仅构建活动架构从 设置
YES
为NO
。
I also try the solutions from the same problem, but none of it is working for me.
我也尝试了相同问题的解决方案,但没有一个对我有用。
If it helps, I'm using xCode6 and Cocoapods 0.34.4
. The project valid architectures is armv7 and armv7s
.
如果有帮助,我正在使用 xCode6 和 Cocoapods 0.34.4
。项目有效架构是armv7 and armv7s
.
Update:When running pod install --verbose
更新:运行时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.
Thanks in advance.
提前致谢。
回答by Andrei Shender
It seems like you don't have $(inherited)
in OTHER LINKER FLAGS. Please post output of the pod install
$(inherited)
其他链接器标志中似乎没有。请发布输出pod install