How to create a sandbox directory AFTER the build is complete and the simulator starts, the environment does not have any knowledge about all the documents (sandbox folder). You can run a script in the background that checks the simulator dump folder to see which directory was created immediately after the application started.
source share