Xcode 升级到 6.0 后,更新 CocoaPods,出现了如下的警告

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

这种警告是不能忽视的,它带来的直接后果就是无法通过编译。

而产生此警告的原因是项目 Target 中的一些设置,CocoaPods 也做了默认的设置,如果两个设置结果不一致,就会造成问题。

我想要使用 CocoaPods 中的设置,分别在我的项目中定义`PODS_ROOT` 和 `Other Linker Flags`的地方,把他们的值用`$(inherited)`替换掉,进入终端,执行

pod update

警告没了,回到 Xcode,build通过。

网上还流行另外一种简单粗暴的方法

点击项目文件 project.xcodeproj,右键`显示包内容`,用文本编辑器打开`project.pbxproj`,删除`OTHER_LDFLAGS`的地方,保存,回到 Xcode,编译通过。

转载于:https://www.cnblogs.com/Milo-CTO/p/4210113.html

CocoaPods 错误 target overrides the `OTHER_LDFLAGS`...相关推荐

  1. CocoaPod出现“target overrides the `OTHER_LDFLAGS`……的解决方案

    今天在项目中引入AFNetworking. Podfile的内容 platform :ios, '7.0' pod "AFNetworking", "~> 2.0& ...

  2. iOS开发之使用CocoaPods更新第三方出现“target overrides the `OTHER_LDFLAGS`……”问题解决方案

    今天在自己的项目中用CocoaPods引入第三方SDWebImage的时候,出现了问题.当更新完毕后,在终端没太注意这个问题的提示,就直接使用SDWebImage了,在使用的时候一些方法的提示和头文件 ...

  3. target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S

    解决方案:Targets->Build Settings->Combined(All)搜索ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,选中 选项,按下电脑的 ...

  4. CocoaPods设置target支持的swift版本

    上一篇文章说道在Swift4.0中如何引用3.0版本的第三方库,详见这篇文章.但是如果Pods中有很多第三方库都只支持3.0,一个一个修改恐怕是要累死.而且每次执行pod update之后之前设置的都 ...

  5. Flutter 导包错误 Target of URI doesn't exist

    今天在使用vs code创建flutter工程的时候,main.dart里的import 'package:flutter/material.dart';报错Target of URI doesn't ...

  6. CocoaPods 错误解决 Attempt to read non existent folder

    在终端输入:sudo -- sh -c "echo '117.18.237.29 ocsp.digicert.com' >> /etc/hosts" ; 下面和上面无关 ...

  7. 安装Cocoapods,以及其中出现的问题

    2019独角兽企业重金招聘Python工程师标准>>> 如果需要回退pod版本,打包pod等,可以参考本人的这篇博客 pod回退,打包开源pod,打包静态动态库等 添加一个链接htt ...

  8. CocoaPods使用笔记

    文章目录 Pod 命令 1.CocoaPods版本查看 2.安装升级CocoaPods 3.创建Podfile 4.添加第三方库(添加.更新.移除第三方库都用这个) 5.查看第三方库信息 6.查看项目 ...

  9. iOS 如何在一个已经存在多个project的workspace中引入cocoapods管理第三方类库

    一) 具体方法在 iOS 如何在一个存在多个project的workspace中引入cocoapods管理第三方类库 二)Question && Solution Cocoapods ...

最新文章

  1. 光伏组件清洗的7大注意事项
  2. JAVA 对象分配过程
  3. Nginx中浏览器缓存的执行流程
  4. java 调用 ictclas50_1-Ictclas50分词系统ForJava
  5. 操作系统 —— 文件管理
  6. “越级”的两年后,科技潮牌realme与年轻人进行了一次深度对话
  7. 说一下安卓的touch事件分发机制
  8. 苹果回应:iPhone 11用北斗导航作为位置数据系统一部分;马云回应年轻人去做快递小哥;Linux Lab发布v0.5 rc3| 极客头条
  9. 50.magento 订单状态
  10. MASM32 Editor的使用
  11. python主函数_python main函数
  12. 《明朝那些事儿》读后感
  13. adobe android 动画,Lottie - Android 动画详解
  14. ubuntu 有key登入sshd Failed publickey for xxx from xx port Xxx ssh2
  15. 数字电路中的建立时间与保持时间是什么
  16. 360度全景标定方法_一种车辆行驶360度全景行车标定板的制作方法
  17. Android ListView 和 ***Adapter 从本地/网络获取歌曲列表
  18. linux 下文件夹无法删除(报:Device or resource busy),然后进入文件夹也无法创建新的文件夹(Permission denied)
  19. Win11电脑没有声音如何解决
  20. 使用计算机时按什么键打开,电脑怎么重启按什么键

热门文章

  1. opencv-api adaptiveThreshold
  2. opencv-api drawKeyPoints
  3. IT培训机构那些不得不说的事儿
  4. vSphere 故障排错:针对 Virtual Machine 的故障排查
  5. ETL学习总结(2)——ETL数据集成工具之kettle、sqoop、datax、streamSets 比较
  6. 消息中间件学习总结(17)——MQ与RPC的区别和关联
  7. Spring Boot学习总结(11)——SpringBoot的Starter依赖包及作用
  8. java编写程序_对输入的年月日_给出该天是该年的第多少天?_编写Java程序。当以年月日的格式输入一个日期时,输出该年是否是闰年,该月有几天,该日是星期几...
  9. arduino水温度传感器数字显示_液晶显示屏应用示例以及程序详解
  10. AngularJS国际化配置