用于Cocoapods库的架构armv7的未定义符号 [英] Undefined symbols for architecture armv7 for Cocoapods libraries

查看:167
本文介绍了用于Cocoapods库的架构armv7的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

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

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.

到目前为止我做了什么:

What I have done so far:


  • 清理项目并重新构建。

  • 删除Cocoapods相关文件并再次运行 pod install

  • 尝试在Project Target中的Compile Sources中添加类,但是不能。该类位于Pods工作区中。

  • 仅将构建活动体系结构从 YES 设置为

  • 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 to NO.

我也尝试同样的问题,但没有一个对我有用。

I also try the solutions from the same problem, but none of it is working for me.

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

If it helps, I'm using xCode6 and Cocoapods 0.34.4. The project valid architectures is 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.

提前致谢。

推荐答案

看来你在其他LINKER FLAGS中没有 $(继承)。请发布 pod install

It seems like you don't have $(inherited) in OTHER LINKER FLAGS. Please post output of the pod install

这篇关于用于Cocoapods库的架构armv7的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆