简体   繁体   中英

Why is my Xcode 5.1.1 simulator not working?

I am trying to create an app.

I have Xcode 5.1.1 but have been having this issue ever since I downloaded Xcode (2 versions ago)

Even though I have code written and it compiles successfully, when I go to use the simulator (any simulator).

It opens up just plain black and stays plain black, it doesn't change.

How do I fix this?

Thanks in advance!

Its not problem with Xcode. Its problem with the simulator version you are running the app on.

  1. Place some NSLog statements in viewDidLoad, viewWillAppear etc. methods, and see what is going wrong.
  2. Download old simulators and try running on them.
  3. Better you clean builds and remove the app from the simulator everytime you run until you

see good results.

This could be for multiple reasons so I'll give multiple bits of advice.

  1. Which simulator are you trying to run? Retina 3.5inch, Retina 4inch or Retina 4inch 64bit, if you're trying to run the 64bit, all I'll say is don't
  2. Have you tried cleaning your app? Shift + Command + K
  3. Have you made sure that your deployment target is correct? Project > Targets > Deployment info and that's how you change it, I run 7.1 but that's up to you and your project.
  4. In the iOS simulator, on the task bar at the top click Hardware then home or Shift + Command + H. If it goes to the home screen it's the app.
  5. In the iOS simulator again go to the top task bar and click iOS Simulator > Reset Content and Settings

If none of these work, I'll try and help you further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM