Is it possible to access root folder from a pre-build script in Xcode?

I need access to the “Source” folder from my pre-build script in Xcode. ${SRCROOT} only brings me to the “Builds” folder where the Xcode project lives. Is there a smart way to create a relative path variable to the main folder (where the .jucer file lives) or directly where the source code files are located?


friendly bump :slight_smile:

Hi. How about

I was using it like ${PROJECT_DIR}/../../ and it gives me the main folder with jucer file.

Thanks, that did the trick! So easy … :man_facepalming: