Reputation: 4220
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 match 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?
Upvotes: 2
Views: 14859
Reputation: 95
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
Upvotes: 0
Reputation: 418
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.
Upvotes: 4
Reputation: 4220
Within the build tab of project settings there is a field for linker options, I removed the -ljson from here to solve the issue.
Upvotes: 3