iOS开发点滴-cocoapods在64bit编译

来源:互联网 发布:手机淘宝退货退款金额 编辑:程序博客网 时间:2024/06/06 20:15

现在编写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 中重新设置值.

  1. Architectures: Standard architectures (armv7, armv7s)
  2. Base SDK: Latest iOS (iOS 7.0)
  3. Build Active Architecture Only: YES
  4. Supported Platforms: iOS
  5. Valid Architectures: arm64 armv7 armv7s

自己的工程和Pods工程都需要进行上述的设置.

注意:在每次Podfile更新之后,还需要重新检查新的Pods工程中的设置是不是如上面设置的一致,如果不一致,则需要修改一致。

引用:http://blog.kingiol.com/blog/2013/12/03/fix-cocoapods-warning-on-ios7-64bit/

0 0
原创粉丝点击