CocoaPods:“Use the `$(inherited)` flag” or “Remove the build settings from the target”

996.icu LICENSE

  • 问题背景
  • 解决方法
  • 总结

阅读之前注意:

本文阅读建议用时:5min

问题背景

CocoaPods导库的时候,出现了如下情况:

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

解决方法

出现这种情况的原因是CocoaPods的设置,和Xcode项目的设置冲突了。
提示中说的是:Xcode项目的设置复写了CocoaPods的默认设置。

因此解决方法很简单,在build settings中搜索到冲突的设置,将该设置添加$(inherited)标志即可。
比如我上面的冲突就是PODS_CONFIGURATION_BUILD_DIR。因此在build settings中搜索该设置,如下图:
在这里插入图片描述
如此设置后,关闭当前Xcode工程,再cd至项目路径重新执行pod install或者pod update即可。

总结

一句话总结:CocoaPods导库警告,解决设置冲突即可。
在这里插入图片描述

参考资料

  1. Mac升级Python3
  2. Mac下更新Python3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值