Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - use relative paths instead of direct path for Framework Search Paths

When I add a framework in Xcode (5) it creates this beast of a path:

/Users/me/MyApp\ Subfolder1\ Subfolder2/MyApp\ Subfolder1\ Subfolder2/libraries/third-party-lib-2.0

How to I turn this direct path into a relative one so that it works wherever the project is opened?

like image 202
soleil Avatar asked Dec 15 '22 02:12

soleil


1 Answers

You can use $(SRCROOT) if you want to refer paths relative to your source directory. Refer this from apple docs. There are bunch of these kind of variables. But in Build settings they will be shown as expanded, once you open it for editing it will resort it to the relative path variable.

Between if you are adding frameworks to your project, will be good if you consider using CocoaPods. Framework/package management will be a piece of cake with it. And the learning curve is also quite smooth.(I don't think if there is a learning curve at all)

like image 120
egghese Avatar answered Dec 26 '22 15:12

egghese