Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parent directory of Xcode param ${PROJECT_DIR}

Hopefully a lightweight question, but I haven't been able to find an answer....I need to write a script for my Xcode project that copies files from a directory a couple of levels above my project directory.

I don't know enough about writing these scripts to get to the parent of the environment variable. I tried

${PROJECT_DIR}/../../my-source-folder/

But that didn't work.

like image 594
ChickensDontClap Avatar asked Nov 05 '13 05:11

ChickensDontClap


People also ask

What is ${ Project_dir?

PROJECT_DIR. Identifies the directory containing the project ( .xcodeproj ) $(PROJECT_DIR)/build is used as the create the default value for: Intermediate Build Files Path OBJROOT.

What is Srcroot?

$(SRCROOT) (aka $(SOURCE_ROOT) ) is a path to your location where a . xcodeproj is. It is simple to check, just put it in a field and Xcode gives you a tip.


1 Answers

this solution worked fine for me:

$(PROJECT_DIR)/../ 
like image 78
Roberto Ferraz Avatar answered Sep 23 '22 01:09

Roberto Ferraz