本文主要是介绍Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn',希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
引入cocoaPods后,第一次编译报这个错误
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn't contain all required architectures 'i386'
查了些资料,在网上有一种解决方法是去设置pod工程的 valid Architectures 与你的项目工程的 valid Architectures 一致
试了试没有成功,
现在编写iOS程序,引用到第三方包,运用cocoapods进行包管理已经成为了一个趋势了,但是最近运用cocoapods构建的应用却在64bit的iOS7系统中有警告的产生,具体的警告信息如下面所示:
Pods was rejected as an implicit dependency for ‘libPods.a’ because its architectures ‘i386’ didn’t contain all required architectures ‘x86_64’
具体的解决方案如下: 在TAGETS =》 Build Settings 中重新设置值.
- Architectures: Standard architectures (armv7, armv7s)
- Base SDK: Latest iOS (iOS 7.0)
- Build Active Architecture Only: YES
- Supported Platforms: iOS
- Valid Architectures: arm64 armv7 armv7s
最后,如下代码
- post_install do |installer| installer.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ARCHS'] = "armv7" end end end
纪念下,另外,想使用任何包,可以先到
http://www.cocoapods.org 搜索,真的很好用
这篇关于Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn'的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!