Open `xcrun simctl get_app_container booted BUNDLE_ID_OF_THE_APP data`įor real device, you will need to download the whole app container to your Mac to inspect them. Launch the simulator, then open Terminal app, type in the code below, replace the bundle ID with your app bundle ID : If you don't want to modify your code, there's another way to locate the app folder. You can put this line in viewDidLoad function, and get the path in the Xcode console.Ĭopy the path, open Finder, then select " Go" -> " Go to Folder" (shortcut key Command Shift G), then paste in the path and press Enter. You can get the path of this folder by printing NSHomeDirectory() print("app folder path is \(NSHomeDirectory())") Simulatorsįor simulator, the app folder is stored in your Mac. You can also inspect the UserDefaults data by going to AppFolder/Library/Preferences/Your_app_bundle_id.plist. How do we find the app folder containing the data? Your app might store some data or files in the Documents folder, and sometimes you might want to check if the data / files are stored correctly by inspecting them.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |