执行pod install时terminal警告去除

2021-04-25  本文已影响0人  Sweet丶

执行pod install之后终端出现警告:

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

[!] The `xxx [Release]` target overrides the `VALID_ARCHS` build setting defined in `Pods/Target Support Files/xxx.release.xcconfig'. This can lead to problems with the CocoaPods installation

上面的警告是说项目中设置的target架构与pod库中的支持的架构不同,有可能导致编译错误,去除办法:项目中搜索VALID_ARCHS, 在自己的target中将对应的这个设置修改为$(inherited)

VALID_ARCHS警告去除.png
ENABLE_BITCODE
[!] The `XMSport [Debug]` target overrides the `ENABLE_BITCODE` build setting defined in `Pods/Target Support Files/Pods-XMSport/Pods-XMSport.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

解决办法类似

ENABLE_BITCODE警告去除.png
上一篇下一篇

猜你喜欢

热点阅读