ios编译运行提示:unable to boot ios simulator

Unable to run app in Simulator

An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)


国外大神的办法:

  1. Close Xcode and iOS Simulator (and all related applications)

  2. Install (or reinstall) Xcode6-Beta to Applications folder (direct from the .dmg file)

  3. Open Xcode6-Beta and go to Xcode -> Preferences -> Locations -> Command Line Tools and select "Xcode 6.0" (be sure that you've selected the one in Applications folder)

  4. Launch the iOS Simulator and go to iOS Simulator -> Reset Content and Settings...

  5. Close all the applications and restart your mac (I unchecked "Reopen windows...")

  6. Open Xcode6-beta and test the iOS Simulator



版权声明:本文为irizhao原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。