Ios 6 simulator stuck on splash screen

2019-03-18 12:54发布

问题:

I am using Mac os 10.8.2, and Xcode 4.5.2, when i try to run my app in ios 5/5.1 simulator its working fine, but when i try to run the App in ios 6 simulator it get stuck with blank screen. can anybody let me know what the solution for my problem?

回答1:

I had this issue a while ago. Here's what helped me:

  1. In your iOS simulator, reset content and settings
  2. quit your iOS simulator
  3. Quit and reopen your Xcode project
  4. in Xcode, click Product > Edit Scheme. Change debugger from LLDB to GDB (or none)
  5. In Xcode, click Product > Hold down the option button on your keyboard and click 'Clean build folder'
  6. Run your project

This works for me... sometimes when I have this error. Here's a good link for some other options for what could be going wrong:

XCode 4 hangs at "Attaching to (app name)"

Good luck!



回答2:

I had the same issue: In my case, the cause apparently was:

  • two singletons,
  • each of whom had a pointer to the other,
  • in its designated initializer.

Like a figure eight, initializing #1 led to initializing the other (#2), which lead to an attempt to initialize #1 again -- but as a singleton, this (at least, I conjecture that this) meant blowing away the memory address that had the thread - like going back in time and causing your parents to never meet. So the thread was lost without even an error, just a hang.

iOS 8.x, Xcode 6.x, ObjC



回答3:

I had the same problem and it was not a caching issue. The issue was that the program was caught in an infinite loop which got triggered right at the start of the application.

Try and see if this is your case.