使用CocoaPods更新第三方库出错的解决办法
使用CocoaPods更新第三方库出错的解决办法
执行完pod install或pod update之后,控制台抛出以下警告信息:
- [!] The
xx [Debug]
target overrides thePODS_ROOT
build setting defined inPods/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
xx [Debug]
target overrides theLIBRARY_SEARCH_PATHS
build setting defined inPods/Target Support Files/Pods-xx/Pods-xx.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
$(inherited)` flag, or- Remove the build settings from the target.
- [!] The
xx [Debug]
target overrides theHEADER_SEARCH_PATHS
build setting defined inPods/Target Support Files/Pods-xx/Pods-xx.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
$(inherited)` flag, or- Remove the build settings from the target.
- [!] The
xx [Release]
target overrides thePODS_ROOT
build setting defined inPods/Target Support Files/Pods-xx/Pods-xx.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
$(inherited)` flag, or- Remove the build settings from the target.
- [!] The
xx [Release]
target overrides theLIBRARY_SEARCH_PATHS
build setting defined in `Pods/Target Support Files/Pods-xx/Pods-xx.release.xcconfig'. This can lead to problems with the CocoaPods installation
如果不解决此问题的话,会出现由于部分库文件找不到而导致的种种问题:
(1)编译失败,抛出Undefined symbols for architecture i386错误
(2)调用库中的方法,抛出unrecognized selector sent to instance错误
解决方法如下:
- 1 打开工程所在文件夹,找到.xcodeproj文件,右键选择【显示包内容】,找到project.pbxproj文件
- 2 打开project.pbxproj文件,查找
PODS_ROOT
LIBRARY_SEARCH_PATHS
HEADER_SEARCH_PATHS
LIBRARY_SEARCH_PATHS
把和这些相关的内容都删除
- 3 重新执行pod install,此时应该就没有上面出现的警告信息了
- 4 编译并运行
使用CocoaPods更新第三方库出错的解决办法的更多相关文章
- Git更新或提交出错的解决办法
一.舍弃本地代码,用远端版本覆盖本地版本. 当自己本地修改很少,更新代码出现冲突时,“error: Your local changes to the following files would be ...
- Xcode工程使用CocoaPods管理第三方库新建工程时出现错误
工程使用CocoaPods管理第三方库,在新的目录update版本的时候出现如下问题 问题1描述: diff: /../Podfile.lock: No such file or director ...
- Xcode工程使用CocoaPods管理第三方库新建工程时出现异常
Xcode工程使用CocoaPods管理第三方库新建工程时出现异常 Xcode工程使用CocoaPods管理第三方库新建工程时出现错误工程使用CocoaPods管理第三方库,在新的目录update版本 ...
- 于用cocoapods添加第三方库,并且cocoapods添加成功,但是却在任何一个文件上都导入不了头文件
关于用cocoapods添加第三方库,并且cocoapods添加成功,但是却在任何一个文件上都导入不了头文件,而且根本没有提示,即使手动打#import "xxxx.h"也报错xx ...
- 更新chrom遇到flash过期解决办法
更新chrom遇到flash过期解决办法 百度最新adobe flash player ppapi最新版 下载并安装,重启浏览器即可
- 关于小米4电信4g刷入第三方ROM无信号解决办法
from: http://www.yuwantb.com/xiaomi4-lineage-os.html 关于小米4电信4g刷入第三方ROM无信号解决办法 下载这个电信4g补丁包. 链接:http ...
- 【Thymeleaf】Thymeleaf模板对没有结束符的HTML5标签解析出错的解决办法
解决方案 spring: thymeleaf: mode: LEGACYHTML5 <dependency> <groupId>net.sourceforge.nekohtml ...
- excel第一次打开报错 向程序发送命令时出错 多种解决办法含终极解决方法
excel第一次打开报错 向程序发送命令时出错 多种解决办法含终极解决方法 office2007应该遇到“向程序发送命令时出现 问题”,设置为以管理员运行也不好用,重装office也不好用,下面介绍下 ...
- Asp.Net保存session的三种方法 (Dll文件更新导致session丢失的解决办法)
1. InProc模式(默认值):asp.net将session保存到当前进程中,这种方式最快,但是不能多台服务器共享session,且会话状态数据容易丢失. <sessionState mod ...
随机推荐
- Cython入门.VS.C++
原文链接:http://blog.csdn.net/gzlaiyonghao/article/details/4561611 作者:perrygeo 译者:赖勇浩(http://laiyonghao. ...
- js 获取 下拉框的值
//错误 console.log($("#DictID").select.val()); //错误 console.log($("#DictID").selec ...
- Sublime + Chrome 本地调试 CSS 选择器
生成简单的 HTML 代码 使用MacDown写 Markdown,快捷键ALT+CMD+C拷贝成 HTML 代码 粘贴到 Sublime 中,加上 body 标签和 css 头 html <h ...
- 【转】【Oracle 集群】Oracle 11G RAC教程之集群安装(七)
原文地址:http://www.cnblogs.com/baiboy/p/orc7.html 阅读目录 目录 集群安装 参考文献 相关文章 Oracle 11G RAC集群安装(七) 概述:写下本文档 ...
- 原生ajax的get和post方法封装
get 方法 function serialize (data) { if (!data) { return ''; } var paris = []; for (var key in data) { ...
- XSS Chanllenges 1-5
XSS Chanllenges XSS Chanllenges 是一个XSS的练习平台,可以借助这个平台练习各种绕过,以及手工进行XSS的学习 平台链接:https://xss-quiz.int21h ...
- MAVEN的结构认识篇
1.maven的结构认识 src main com imooc calss test com imooc test resources pom.xml 以上是maven项目存在的必须结构!如下图 te ...
- 常见的dos命令(及抒写方式)
1.dir:列出当前目录下的主体及文件夹. 2.md:创建目录. 3.rd:删除目录.{注意:rd不能删除非空的文件夹,并且只能用于文件夹的删除} 3.cd :进入指定目录. 4.cd . . :退出 ...
- pandas之cut(),qcut()
功能:将数据进行离散化 可参见博客:https://blog.csdn.net/missyougoon/article/details/83986511 , 例子简易好懂 1.pd.cut函数有7个参 ...
- ContextLoaderListener的说明
ContextLoaderListener是配置在web.xml里的,具体如下: <!-- ContextLoaderListener是个监听器,用来监听容器启动事件,监听到容器启动事件后 其c ...