I was testing my app and I click on iPhone 6 simulator and out of the blue instead of what I have in storyboards, the simulators loads something different. It loads my app but the app I had months ago when certain buttons were missing and it lined up my app differently. Then when I closed the simulator turned it back on again, everything loaded like normally with the right app. This happened twice before as well.
Why would the simulator load something different from what's in the storyboards?
Try the following solutions:
clean your project: command + k
reset the simulator under the File-tab in the task bar while the simulator is open
open the simulator and delete the app from it like you would on an actual device. This will force-reinstall the application to your simulator and it will work again.
I don't really know why it does that but I guess that might have something to do with cache or something...
Related
I've been writing an app and I've released one version to the App Store. I've updated it slightly since then and have been playing with it on the Simulator. Unfortunately the Simulator has stopped reacting to the changes in my code. I know it's the simulators fault because if I run the app on my iPad the changes take effect.
I've tried resetting the simulator by going iOS Simulator -> Reset Content and Settings, I've tried quitting the Simulator and Xcode.
I have no clue why the Simulator is not working properly. It's just blatantly not updating.
Clean your project with command+shift+K.
Quit Xcode and clean ~/Library/Developer/Xcode/DerivedData manually. Remove all of its contents.
Without going on a bizarre snipe hunt into the bowels of ~/Library/Developer/CoreSimulator, I can't seem to remove an app completely from Xcode 6's simulator.
If I run the app the first time, all is good - The app believes it is the first time launched.
(no NSUserDefaults, etc)
If I then tap/hold to delete the app in the simulator, then re-run, all the data is there again-
Ergo it's NOT a clean install launch at this point.
Anyone figure out how to really remove the app from the simulator, as it is not removed as cleanly as it is on the device..
Unfortunately it seems like a bug in the latest simulator. Currently I've only been successful with the "Reset Content and Settings..." item from the "iOS Simulator" drop down menu.
When i run simulator in my xcode 5 and later on if i try to change simulator Device from under menu 'hardware' of simulator it getting crash. which is something unlikely to xcode previous versions. Is it my xcode copy specific bug or something else?
I had the same problem. Instead of changing the device in the iOS simulator, change to the device of your preference in XCode. Notice your project name in the top left hand corner next to build and run button and stop button. To the right of that is a drop down for different device names. Pick the one that you'd like to simulate. Then build and run in iOS simulator.
I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try to do?
Update--
With some additional research, I found that Iphone Simultor is in the Xcode.app now, but I don't know what to delete. There are many files under the iPhone Simulator Folder. If I delete the actual app, it just doesnt open. Any ideas?? I dont even get an iphone on the screen, just a black window...
Update 2:
Even when I just go to open developer tools -> iphone simulator
it still gives me just a black screen....
Update 3
I just re-installed X-code, and all works now! Strange....I have no idea what happened...But I thought I would let y'all know for others who have similar issues.
Deleting the iOS Simulator folder of the iOS version in question in
/Users/xxx/Library/Application Support/iPhone Simulator
helps, but then you always have to repeat all the settings you made in the simulator (language, for example). Try to press the home button and then delete your app like you do it on a real iOS device. You should then be able to install it again.
This seems to be a known issue.
When simulator open - Go to iOS simulator tab -> reset content and settings..
Work for me.
Perhaps this answer will help?
The simulator should be in this folder:
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app
Make sure any #try and #catch(NSException *exception) {} blocks are not commented or are working properly.
This is a version mismatch between your OS X version and your Xcode (iOS simulator)
and it seems that you have upgraded your OS X so Xcode needs to be upgraded as well, Check the versions that match with each other.
You need to upgrade your Xcode which will upgrade iOS simulator.
Good Luck,
I have seen many question like this before but in my case it is not working only on iPad.
I have breakpoints that are not working in iPad but when I Run my application on Simulator or on the iPhone all the breaking point are working properly.
I have tried install SDK again, Delete the previous build, clean , clean all target & Load Symbols Lazily.
Try deleting the app from the iPad, restart, clean the project, run normaly, stop, activate breakpoints, and re-try.
Sometimes when Xcode is started and device is already connected to MAC, the device appears in XCode even if the device iOS version is higher than the XCode iOS version. At this time the break point doesn't work.