Document directory path of Xcode Device Simulator

前端 未结 21 1747
旧巷少年郎
旧巷少年郎 2020-11-28 02:28

In iOS 7, the document directory of the iOS simulators can be found in:

/Users/Sabo/Library/Application Support/iPhone Simulator/

However,

21条回答
  •  天命终不由人
    2020-11-28 02:45

    With iOS 9.2 and Xcode 7.2, the following script will open the Documents folder of the last installed application on the last used simulator;

    cd ~/Library/Developer/CoreSimulator/Devices/
    cd `ls -t | head -n 1`/data/Containers/Data/Application 
    cd `ls -t | head -n 1`/Documents
    open .
    

    To create an easy runnable script, put it in an Automator Application with "Run Shell Script":

提交回复
热议问题