If you're a React Native developer, you can also add this to your package. This command will automatically open the data directory right in your finder. To save a step, you can also do this: open $(xcrun simctl get_app_container booted replace_with_apps_bundle_id data) You can always open multiple instances of the iOS Simulator manually, install the Expo app on each one and then launch the app, but its a waste of time if you. Running that command in the terminal will tell you the path you need to open. Thanks to this comment on stackoverflow, I discovered how to find the correct path for the currently open simulator: xcrun simctl get_app_container booted replace_with_apps_bundle_id data Because of this, you can't simply remember the path and go to the same place each time you need to inspect the data. Each new launch of the simulator creates a different path. Each different simulator writes to a different path. Your app's information is stored directly on your Mac. ![]() ![]() Have you ever needed to access the data directory of your iOS app in the simulator? Maybe your app writes to a file and you need to inspect its contents?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |