开发者

Library not found for -lXXX

If your trying to run an iphone project downloaded from the internet in Xcode and you encounter "Library not found for -lxxx", where -xxx is some third party library where would you look to set the library path? I am not sure where this is setup, in the SCM->library path is blank and everything else seems to mat开发者_运维技巧ch the configuration window for other working projects

When I look at the build log i see the following in the linker output:

-ObjC -ljson

How can i configure the project to not try to link in that library at build time?


if using cocoapods and getting this error, try updating the cococapods
$ sudo gem update cocoapods

Then update the pod for the project
$ pod update

I don't know the exact reason but I think it was because the old version didn't set the libraries properly for the new XCode.
Hope this helps.


Within the build tab of project settings there is a field for linker options, I removed the -ljson from here to solve the issue.


Either you need to add that library to add your project or you can remove from the project and delete all the reference. This may help you, just click on the library and change the 'required' option.


This might be helpful in some cases:

Xcode > Preferences > Locations > Locations > Advanced, select Unique.

I was facing a similar issue and chaging to "unique" from "legacy" solved the problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜