Failed to load iOS Simulator - xcode 6.0.1

I have a bug in Xcode 6.0.1 on OS X Mavericks 10.9.5.

When I debug the iOS 8 simulator shows this error:

Unable to load iOS simulator.

After a few seconds, Xcode shows this other error:

An error occurred at startup (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)

However, the iOS 7 simulator works !!

+2


source to share


5 answers


Do you have DYLD_INSERT_LIBRARIES installed? Check /etc/launchd.conf and look for startd_sim crash logs in ~ / Library / Logs / DiagnosticReports ... if so it is cheating



Unable to load iOS 8 Simulator

0


source


At this point it seems like there are a lot of problems with the simulator in XCode 6 compared to XCode 5. I have especially seen problems when switching between different deployment targets and mock devices. Restarting the simulator usually fixes the problem, and if not trying to restart Xcode.



0


source


I also had this problem and found a solution by following these steps: -

 1) Initially i downloaded Xcode 6 library in Documentation section under the path Xcode --> Preferences --> Downloads and restart my xcode but didn't solve my problem. 

After that -> 

2) Downloaded and installed the iOS 7.1 Simulator under the path Xcode --> Preferences --> Downloads. 

        Restart xcode again and the problem solved.

3) I am facing same issue again next morning.

       Unsetting the DYLD_INSERT_LIBRARIES variable solves my problem:-

 a) Open terminal and type "sudo vi /etc/launchd.conf" command and press Enter
 b) Press I "Insert" mode and change this 

             "setenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

                                  to this 

              "unsetenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

       and press esc to exit from insert mode. 

    c) Save changes by typing ":wq" Press Enter
    d) Reboot your system and problem soloved.  

      

enter image description here

Prior to that i didn't found any iOS version in front of each listed devices 
but after installation or by unsetting DYLD_INSERT_LIBRARIES variable i found the same in front of each devices.

      

<P →  enter image description here

Hope this helps anyone.

0


source


Thanks guys, but I finally found a solution. For those still looking for a solution, here's what worked for me:

There is a /etc/launchd.conf file that Yoseph will not use. I just deleted it. You can also disable the DYLD_INSERT_LIBRARIES environment variable in this file. Hope this helps all of you.

0


source


Make sure you have the path "Xcode -> Preferences -> Location -> Command Line Tools -> Xcode 6.0 if you haven't selected that. Another option is under the iOS Simulator to do" Reset Contents And Preferences ". Hope this helps!

-1


source







All Articles