Using xcrun simctl to find the documents folder of your app in the iOS Simulator
Having trouble finding the
Documents folder of the app you’re writing, then look no further.
xcrun simctl command it’s easy to find the directory in the
currently booted iOS Simulator.
If we look inside this folder we will find the
Documents folder of the supplied app identifier.
There are many other things that
xcrun simctl can do, such as creating and deleting Simulators,
installing apps and photos plus much more. Great if you’re using a CI server and want to have a clean
environment between runs.
After a quick Google I found a few great posts on the matter: