Xcode - use relative paths instead of direct paths for search paths in Framework

When I add the framework to Xcode (5), it creates this beast of the path:

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

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

+4
source share
1 answer

You can use $ (SRCROOT) if you want to refer to paths relative to the source directory. Refer from Apple docs . There are tons of such variables. But in the Build settings they will be shown as advanced, as soon as you open it for editing, it will apply it to the relative path variable.

, , , CocoaPods. / . ( , )

+12

Source: https://habr.com/ru/post/1523609/


All Articles