Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing path of document directory to xcode run scripts

I want to pass the location of the documents (data) directory to the script which runs after the build in a xcode target.

What is the environment variable I should use?

like image 547
Neeraj Avatar asked Aug 28 '13 21:08

Neeraj


1 Answers

As the sandbox directory is created AFTER the build completes and the simulator starts, the environment has no knowledge at all of the documents (sandbox directory). You can run a script in the background, which keeps checking the simulator's dump folder to see which directory was created immediately after the app was started.

like image 149
user2741421 Avatar answered Oct 25 '22 20:10

user2741421