Search code examples
xcodebuild-settings

What relative variable to use, to reference the Xcode frameworks path?


I'm looking to reach this folder, with a relative path: /Applications/Xcode.app/Contents/Developer/Library/Frameworks

With something like this:

$(EXAMPLE)

or this:

$(EXAMPLE)/Frameworks

or this:

$(EXAMPLE)/Library/Frameworks

Is there such variable available? The Build Settings Reference doesn't seem to have one. But I find it odd that it doesn't.

Thank you!


Solution

  • You want: ${DEVELOPER_FRAMEWORKS_DIR}

    Here's an example from a compilation run I did a while back (and documented to track such variables):

    setenv DEVELOPER_FRAMEWORKS_DIR /Users/andy/Applications/Xcode46-DP4.app/Contents/Developer/Library/Frameworks
    

    (as you can see, this is from Xcode 4.6 DP4, installed in my user Application folder).