Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle different Library Search Paths with Xcode and Git?

I am working on an app with a friend.

We use git (private) as versioning system. The problem we face is that Xcode (5.1 DP2) gives this warning: "Apple Mach-O Linker Warning - Directory not found for ..."

enter image description here

The reason for this warning is that Xcode cannot find the path from my friend on my hard drive.

So my question is how to handle different absolute paths for the "Library Search Path" in Xcode in general when working with a team?

like image 388
electronix384128 Avatar asked Oct 20 '25 04:10

electronix384128


1 Answers

Use the SRCROOT build setting. For example, add the following to Library Search Paths:

$(SRCROOT)/Libraries/MyLibrary

Full docs on Xcode build settings are here.

like image 117
jonahb Avatar answered Oct 21 '25 19:10

jonahb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!