The `*** [Release]` target overrides the `ARCHS` build setting defined in `Pods/Target Support Fi...

關(guān)鍵字:ARCHS
昨天使用 pod install 的時候,遇到這個錯誤
然后真機(jī)可以調(diào)試,模擬器都無法編譯通過

[!] The `***-ASDEV [Release]` target overrides the `ARCHS` build setting defined in `Pods/Target Support Files/Pods-***-ASDEV/Pods-***-ASDEV.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `***-testFlight [Release]` target overrides the `ARCHS` build setting defined in `Pods/Target Support Files/Pods-***-testFlight/Pods-***-testFlight.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

這是因為我們的某幾個target現(xiàn)在架構(gòu)release只支持arm64 (i_0)

i_0

然后pod install或者pod update或者pod install --verbose或者pod install --verbose --no-repo-update或者pod update --verbose --no-repo-update等等的時候

會把用到的第三方的也指定為arm64 (i_1)

i_1

解決辦法:

方法1:
Pods -- targets -- 選中架構(gòu)為arm64的第三方庫的targetPod關(guān)聯(lián)項目自身的target所生成的target的 如圖 i_1 的那一行 -- delete
循環(huán)這樣把所有的Pods的三方庫如上操作
clean -- build

方法2:
Pods.xcodeproj -- 顯示包內(nèi)容 -- 打開project.pbxproj -- 搜索ARCHS = arm64; -- commad+option+f全部整行替換為空 -- 保存關(guān)閉 -- clean -- build

即可
虧我google了半天的原因


不定期更新 不合適的地方 還請指點~ 感激不盡

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容