Reputation: 12884
I am having some trouble with Xcode not updating files that I have updated (e.g. database, jpgs etc), even though I have carefully deleted the old files and removed the references. This problem consists since Xcode > 4.2.
Is there a place (maybe hidden files) where the simulator drops data except the derived data folder and
~/Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID]/
Many thanks in advance
PS: yes, I usually clean project, delete derived data, delete all simulator files in the abov directory, delete the project and restart the mac. And still there seems to be a reference to the old data (like jpg, database etc), even if I can't find it on the file system...
Upvotes: 4
Views: 4510
Reputation: 31
Some times you have conflicting code in didFinishLaunchingWithOptions that you forgot to remove. Make sure that function only has the statements you want.
For example, the code below is setting the background to white. No matter what you add to the storyboard you will still see all white.
- (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;
}
Upvotes: 1
Reputation: 1
Uninstall the app in the simulator and then goto Product>>Clean. This works for me.
Upvotes: 0
Reputation: 452
Goto Product>>Clean Build Folder. Or alternatively, Reset Simulator from iOS Simulator menu. That way your app will be rendered new in the simulator and used after a complete refresh and link-up with your project files.
Upvotes: 5
Reputation: 8163
Uninstall the app in the simulator. That way you get rid of everything.
Upvotes: 1