關(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的第三方庫的target和Pod關(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了半天的原因
不定期更新 不合適的地方 還請指點~ 感激不盡

