Document directory path of Xcode Device Simulator

前端 未结 21 1655
旧巷少年郎
旧巷少年郎 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:59

    If your app uses CoreData, a nifty trick is to search for the name of the sqlite file using terminal.

    find ~ -name my_app_db_name.sqlite
    

    The results will list the full file paths to any simulators that have run your app.

    I really wish Apple would just add a button to the iOS Simulator file menu like "Reveal Documents folder in Finder".

提交回复
热议问题