关键字:ARCHS
昨天使用 pod install 的时候,遇到这个错误
然后真机可以调试,模拟器都无法编译通过
[!] 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现在架构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 -- 选中架构为arm64的第三方库的target和Pod关联项目自身的target所生成的target的 如图 i_1 的那一行 -- delete
循环这样把所有的Pods的三方库如上操作
clean -- build
方法2:
Pods.xcodeproj -- 显示包内容 -- 打开project.pbxproj -- 搜索ARCHS = arm64; -- commad+option+f全部整行替换为空 -- 保存关闭 -- clean -- build
即可
亏我google了半天的原因
不定期更新 不合适的地方 还请指点~ 感激不尽

