Quantcast
Channel: Is there any way to see the file system on the iOS simulator? - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by Vasily Bodnarchuk for Is there any way to see the file system on the iOS simulator?

$
0
0

based on zsero answer

Details

macOS 10.13.1

Solution 1

Run the following line in the terminal

Template

open `xcrun simctl get_app_container booted BUNDLEID_OF_YOUR_APP data` -a Finder

Full Sample

open `xcrun simctl get_app_container booted com.Test data` -a Finder

BUNDLEID_OF_YOUR_APP ???

BUNDLEID_OF_YOUR_APP = "Bundle Identifier"

enter image description here

Features of the solution 1

  • open file to get app simulator directory

Solution 2

Create a bash scrip with a name of your app and code:

script_file_name = `basename "$0"`open `xcrun simctl get_app_container booted $script_file_name data`

enter image description here

Features of the solution 2

  • open file to get app simulator directory
  • rename file to get another app simulator directory

Result

enter image description here


Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>