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?
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.
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