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.
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.
$(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.
this solution worked fine for me:
$(PROJECT_DIR)/../
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With