解决cocoapods在64位iOS7系统以下的警告问题
生活随笔
收集整理的這篇文章主要介紹了
解决cocoapods在64位iOS7系统以下的警告问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天碰到一個非常奇怪的問題。XCODE提示這種警告?Pods was rejected as an implicit dependency for ‘libPods.a’ because its architectures ‘i386’ didn’t contain all required architectures ‘x86_64’
在網上搜了一篇,解析是這種,由于pod 是以ARM64 的編譯打包的,而在我的項目中指定 valid Architectures 是armv7,所以就報上面的錯誤。表現是在project中所引用 pod類找不到,
在網上有一種解決方法是去設置podproject的??valid Architectures 與你的項目project的?valid Architectures 一致。
注意:在每次Podfile更新之后。還須要又一次檢查新的Podsproject中的設置是不是如上面設置的一致,假設不一致,則須要改動一致。
第二種方法是在podfile 文件里指定你的?valid Architectures 。
post_install do |installer|installer.project.targets.each do |target|target.build_configurations.each do |config|config.build_settings['ARCHS'] = "armv7"endendend
在podfile 文件的結尾加上上面的代碼,就能夠搞定,且每次更新也有效。
轉載于:https://www.cnblogs.com/mengfanrong/p/5184939.html
總結
以上是生活随笔為你收集整理的解决cocoapods在64位iOS7系统以下的警告问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: css3 javascript 实现菜单
- 下一篇: java信息管理系统总结_java实现科