关于pod

清理pod install配置后的工程

  • 文件清理    删除Podfile.lock,workspace,Pods目录
  • 工程配置清理
  • 1、打开要清理的工程,选择Build Phases, delete Manifest.lock & Copy pods Resources & Run script。
  • 清理工程添加文件
Xcode6: CocoaPods 错误 target overrides the `OTHER_LDFLAGS`...
CocoaPods 错误 target overrides the `OTHER_LDFLAGS`...
[!] 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.
pod update
网上还流行另外一种简单粗暴的方法

    2.Framework&Header search path清理
    选择工程,到Link Binary With Libraries,删除libPods.a和类似于libPods***.a的动态库
Xcode 升级到 6.0 后,更新 CocoaPods,出现了如下的警告
 这种警告是不能忽视的,它带来的直接后果就是无法通过编译。
而产生此警告的原因是项目 Target 中的一些设置,CocoaPods 也做了默认的设置,如果两个设置结果不一致,就会造成问题。
我想要使用 CocoaPods 中的设置,分别在我的项目中定义`PODS_ROOT` 和 `Other Linker Flags`的地方,把他们的值用`$(inherited)`替换掉,进入终端,执行
 警告没了,回到 Xcode,build通过。
点击项目文件 project.xcodeproj,右键`显示包内容`,用文本编辑器打开`project.pbxproj`,删除`OTHER_LDFLAGS`的地方,保存,回到 Xcode,编译通过。


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值