Where does the sim save files (Xcode does not update files)?

I am having problems with Xcode not updating the files that I updated (e.g. database, jpgs, etc.), although I carefully deleted the old files and deleted the links. This problem is that Xcode> 4.2.

Is there a place (possibly hidden files) where the simulator deletes data except the folder with the derived data, and

~/Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID]/ 

Thank you very much in advance

PS: yes, I usually clean the project, delete the derived data, delete all the simulator files in the abov directory, delete the project and restart mac. And yet there seems to be a link to old data (e.g. jpg, database, etc.), even if I cannot find it in the file system ...

+4
source share
4 answers

Go to product β†’ Empty build folder. Or, alternatively, Reset Simulator from the iOS Simulator menu. Thus, your application will be presented new in the simulator and will be used after a full update and connection with your project files.

+5
source

Uninstall the application in the simulator. Thus, you get rid of everything.

+1
source

On several occasions, you have conflicting code in the didFinishLaunchingWithOptions file that you forgot to delete. Make sure that the function has only the operators you need.

For example, the code below sets the background value to white. No matter what you add to the storyboard, you will still see all the whites.

  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; } 

Change it to:

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES; } 
+1
source

Uninstall the application in the simulator, and then go to Product β†’ Clean. This works for me.

0
source

Source: https://habr.com/ru/post/1414236/


All Articles