Reputation: 5086
I downloaded Xcode 10.1 from AppStore but it had some errors at startup and couldn't show up. So I downgraded Xcode to version 10.0 (10A255) from Apple official downloads. IDE works fine but now I can't start simulator. I've tried every possible solution on the internet for hours. Here is the logs:
CoreSimulatorService[393] : com.apple.CoreSimulator.CoreSimulatorService 581.2 starting.
com.apple.ibtool[479] : Spawning processes in an unbooted state without setting kSimDeviceSpawnStandalone is deprecated.
com.apple.ibtool[478] : Spawning processes in an unbooted state without setting kSimDeviceSpawnStandalone is deprecated.
CoreSimulatorService[393] : Could not register service com.apple.PowerManagement.control: launch_sim_register_endpoint: 0xfffffecc
CoreSimulatorService[393] : Could not register service com.apple.SystemConfiguration.configd_host: launch_sim_register_endpoint: 0xfffffecc
CoreSimulatorService[393] : Could not register service com.apple.audio.coreaudiod: launch_sim_register_endpoint: 0xfffffecc
CoreSimulatorService[393] : Could not register service com.apple.SystemConfiguration.PPPController: launch_sim_register_endpoint: 0xfffffecc
CoreSimulatorService[393] : Could not register service com.apple.audio.audiohald: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service com.apple.SystemConfiguration.configd: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service com.apple.FSEvents: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service PurpleFBTVOutServer: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service IndigoHIDRegistrationPort: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service PurpleFBServer: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Could not register service com.apple.CoreSimulator.host.bootstrap_port: launch_sim_register_endpoint: 0x44e
CoreSimulatorService[393] : Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedDescription=Unable to boot the Simulator., NSLocalizedFailureReason=launchd failed to respond.}
CoreSimulatorService[393] : Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedDescription=Unable to boot the Simulator., NSLocalizedFailureReason=launchd failed to respond.} CoreSimulatorService[393] : Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedDescription=Unable to boot the Simulator., NSLocalizedFailureReason=launchd failed to respond.}
What can I do?
Upvotes: 58
Views: 34606
Reputation: 1689
For my Xcode 15.3
and Sonoma 14.4
helped the removing of simulator's Caches
folder at ~/Library/Developer/CoreSimulator
Finder
.⌘ Cmd + ↑ Shift + G
(go to folder).⌘ Cmd + V
(pastes copied text) of copied ~/Library/Developer/CoreSimulator
path.Caches
folder.P.S. If not helped than try to remove DerivedData
of your project at ~/Library/Developer/Xcode/DerivedData
Upvotes: 32
Reputation: 2324
Goto System Setting => General => Storage => 'Storage Settings' => Developer (i) icon. Delete Xcode Caches. Then try again!
Upvotes: 200
Reputation: 1
Xcode > File > Workspace Settings > click on Derived Data > clear Derived Data and clear the CoreSimulator caches. That works for me.
Upvotes: 0
Reputation: 21
For me this happened and was gone after I restarted the mac but after sometime it came back again, some people are telling to restart but for me it came back again so i don't think so that is a permanent solution. So currently what solved it immediately was what's mentioned in the first answer i.e deleting the Xcode Cache by:
clicking on apple logo -> System Settings -> Search Storage Settings -> click on more info "i" icon of Developer button -> Select xcode cache and delete -> restart xcode and then run. Thank you!
ps: I am using Apple M1 Pro with Sonoma 14.0 macOS and Xcode 15.0.1
Upvotes: 1
Reputation: 747
In Xcode 14.2 cleaning the build folder resolved this issue for me.
Product -> Clean Build Folder
Upvotes: 11
Reputation: 41
When the finder is open
After deleting the simulator
It must work.
You're welcome
Upvotes: 3
Reputation: 329
Hmm, sad to say but restarting my Mac actually fixed the issue.
Upvotes: 0
Reputation: 263
In my case clearing derived data helped. You can do it like this:
Open Xcode -> Preferences -> Locations -> Derived Data (Click the little arrow) -> Delete the folder.
Upvotes: 18
Reputation: 2329
In my case i have to drag the simulator to the trash bin the i relaunch again and it open
Upvotes: 3
Reputation: 3182
In my case
Unable to boot the Simulator.
Domain: NSPOSIXErrorDomain
Code: 60
Failure Reason: launchd failed to respond.
Was fixed by restarting my wifi router which was playing up.
Upvotes: 13