This article is a collection of the most common issues that I see the students of my course and audience members getting stuck on as well as how to fix them.
My Xcode Interface Is Different – Missing panels or views – Can’t find UIElements in my Storyboard – Can’t drag UIElements onto my Storyboard Spring Board failed to launch application with error: 0 If you get the error above when you try to run your application, the fix is really simple.
All you need to do is make sure your Simulator is the active window, and then open up the menu pictured below and click “Reset Content and Settings…” It will ask you if you really want to reset and you should say yes.
Note that this will delete all the installed apps and settings on your i Phone simulator and reset it back to the original state.
Now when you run your app from Xcode again, you won’t get that error. If your i Phone simulator doesn’t look like the one you see me using in my videos, it’s because your i OS simulator is at a different zoom level.
The frame or bezel on the simulator also differs from level to level so if you don’t see an i Phone bezel on your simulator, try changing your zoom level as shown in the screenshot below.
You can also hit command + 1-3 on your keyboard as shortcut keys to control the zoom level of your simulator.
My simulator screen is black when the app runs If you run your app and the i OS simulator is showing a black screen, I would first wait a little while.
Sometimes it can take up to 15 seconds to launch your app initially.
Secondly, I would reset the simulator like I mentioned above and try to run my app again.
If that still doesn’t work, then maybe you have accidentally set some breakpoints which is stopping the app execution.
Run your app, then bring Xcode to the foreground and see if you see something like the below with a green line (representing where execution has halted) stopped at a blue marker (which is a breakpoint): If you see something like the above screenshot, that means that you’re seeing a black screen because the app execution has stopped.