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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:18:30  来源:igfitidea点击:

Undefined symbols for architecture armv7 for Cocoapods libraries

iosxcodecocoapodsarmv7xcode-project

提问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 installas usual to get started but xcode give me errors. I got Undefined symbols for architecture armv7as you can see in the image below:

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

enter image description here

在此处输入图片说明

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 installagain, 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 installagain.
  • 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 YESto NO.
  • 清理项目并重新构建。
  • 删除 Cocoapods 相关文件并pod install再次运行。
  • 试图在项目目标的编译源中添加类,但不能。该类位于 Pods 工作区中。
  • 将仅构建活动架构从 设置YESNO

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

回答by Ric Santos

You may just need to clean the build folder (???K).

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

enter image description here

在此处输入图片说明