library not found for -lxxxx-ios-x.x.x
借鉴转载方法,我的第三方引用的不能找到library问题解决如下:
build setting
->other linker flag
中的引用为jpush-ios-3.0.2
而在这个问题界面的上方对问题描述的详细信息部分,有这么一个东西 -ljpush-ios-3.1.0 引起了我的注意,所以,我猜想应该就是我的这个引用部分的设置还是老版本的,而更新了pod之后,pod里面的library已经是新版本了,所以找不到,我把build setting
->other linker flag
中的引用改为对应的3.1.0版本,BUG解决
以下是转载内容:
当正在开发时候,cocoapods
移除某一个框架以后,会遇到ld: library not found for -lxxxx-ios-x.x.x
。
这种情况下是因为将框架移除之后,并没有移除build setting
->other linker flag
中的引用,找到移除之后的框架,删除引用即可。
还有一个情况就是升级pods
之后,或者打开刚建好的workspace
文件,会报错ld: library not found for -lxxx
。
这个情况下是工程里面的设置项覆盖了pods中xcconfig中的设置,解决办法是在build setting
->other linker flag
中加上$(inherited)
</article>
转载出处: https://blog.csdn.net/Coco__D/article/details/78959662