When I update Xcode to Version 10 GM, build success, but Simulator can't work! with error:
The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain error 0.)
run xcrun simctl erase all in Terminal. It should solve the issue.
i think its a bug from Apple.
I had the same issue. Not 1 simulator worked and the UIStoryboard was not rendering any graphics. The solution was to restart my mac. Not just Xcode but your Mac (laptop, mac mini, whatever you might be using)
Related
I'm getting the following message while trying to launch simulator
Details
Failed to re-create a coordinator for com.me.myapp.
Domain: IXErrorDomain
Code: 29
Failure Reason: Coordinator already exists.
User Info: {
FunctionName = "+[IXAppInstallCoordinator(IXSimpleInstaller) _beginInstallForURL:consumeSource:options:completion:]_block_invoke";
SourceFileLine = 313;
}
--
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 12.3 (17715) (Build 12C33)
Timestamp: 2021-01-25T15:50:20+01:00
I also found that it works Ok if i launch it on another device simulator (lets say iphone 11 pro instead of 12 pro) but i'd like to fix this somehow.
What i had already tried:
cmd+shift+K
rebooting mac
quitting xcode
Xcode: Version 12.3 (12C33)
any ideas on how to get it fixed would be appreciated
On simulador menu:
Device -> Erase all Content and Settings...
I solved it by uninstalling the app from the simulator and running it again.
Found the solution:
xcrun simctl erase all
Hope it helps someone facing the same problem.
When I build and run any project on Xcode, I face this error:
On the other hand, when I using command-line and install and launch the app by commands, I can see logs and everything is ok.
I did see other similar questions and I did try solutions like the clean project, build and reset and restart simulator and reinstall various versions of Xcode, but didn't fix.
My OS:
Mac Os Catalina 10.15.4
I removed some additional kexts from EFI partition, this problem solved!.
Thanks to Jeremy Huddleston Sequoia
I'm getting the following 2 errors that seem that alternate every time I try to build. I just upgrade my iOS to 12.2 which forced me to upgrade my osx to Mojave 10.14.4 and my xcode to 10.2.
Failed to find or create execution context for description.
Filed to find a suitable device for the type IBSimDeviceTypeiPad2x in
Assets.xcassets
This I have tried:
Cleaning Build Folder (repeatedly)
Closing and restarting Xcode and the simulator
Deleting Derived Data
I had faced the same issue my issue resolved by doing:
Clean build folder (shift + command + K)
Restart your system (Mac)
Note: Also missing simulator after updating to Xcode 10.3 fix by this solution.
Run this command in the terminal to make sure all simulator process in the background are killed :
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Well I don't know how many other people this is going to help out but here was my issue:
I poked around and finally got another error that said that my simulator runtime is not available. What ended up solving it was simply restarting my macbook found from this thread: The iOS 8.1 simulator runtime is not available error in Xcode 6.1
I've updated to Xcode 10 GM, removed the Xcode 10 beta but for some reason none of the simulators ever start. After waiting for awhile, I get this error:
The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain error 0.)
What does that mean and how do I solve this?
So, apparently the only solution is to restart your Mac
There are many possible solutions for this:
Quit simulator (shortcut: cmd + Q) and try again
Reset simulator content. Select Simulator. Goto Hardware tab -> Erase All Content and Settings...
OR
Run xcrun simctl erase all command in terminal.
Restart you Mac machine
Solution 2 worked for me!
I created a new project in XCode.
File > New > Playground (option+shift+cmd+N)
I restarted my XCode and also rebooted my system, but still same error.
From the developer forums, this worked for me:
Quit Xcode
Delete the folder /Users/<username>/Library/Developer/CoreSimulator/Devices. For example, in Terminal: rm -rf ~/Library/Developer/CoreSimulator/Devices
In Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService (or just reboot).
Fox Xcode 7, I had to install iPad Air or iPad Air 2 for the playground to work.
Another possible way to encounter that issue is to get Xcode being auto-updated, while the simulator was launched.
The solution is like mentioned above but more polite:
Quit Xcode and Simulator app
Run in Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService
Launch Xcode and find that all fixed now.
Sure, you can just reboot instead.
Try navigating to the Xcode Menu
Window >> devices (shift+cmd+2) a new window will pop up.
On the bottom left, add a new simulator, specifically one running on iOS 8.0 to the existing list.
Restart Xcode.
As referred by #Mayank Gupta , It worked on adding new simulator and restarting the XCode.