macOS 15.4
I've just updated Xcode to version 16.3 via the the App Store. The project was previously working fine.
After installing all components and Apple Intelligence, I loaded my SwiftUI-based iOS app project.
Xcode Preview fails to load, with an error:
"Failed to create simulator"
== PREVIEW UPDATE ERROR:
FailedToCreateDeviceError<SimRuntime>: Failed to create simulator
Xcode Previews needs to create simulator devices for running previews
Device Type: com.apple.CoreSimulator.SimDeviceType.iPhone-16-Pro
Runtime: com.apple.CoreSimulator.SimRuntime.iOS-18-2
==================================
| NSError.com.apple.CoreSimulator.SimError.401: The iOS 18.2 simulator runtime is not available.
|
| Try reinstalling Xcode or the simulator runtime.
|
| com.apple.CoreSimulator.SimError (401):
| ==NSLocalizedFailureReason: liblaunch_sim.dylib could not be opened
I cleaned the build folder, tried again. Same result.
When I try to Build the project, I get an immediate error:
Failed to find a suitable device for the type IBSimDeviceTypeiPad3x (com.apple.dt.Xcode.IBSimDeviceType.iPad-3x) with runtime iOS 18.4 (18.4 - 22E238) - com.apple.CoreSimulator.SimRuntime.iOS-18-4
(The project does not target iPad. The supported Destinations are iPhone, Mac (Designed for iPhone) and Apple Vision (Designed for iPhone).
The minimum deployment target is iOS 18.0
Any help is appreciated, thank you.
[SOLVED - restarted Mac again. Errors disappeared. Leaving this here for anyone else who has this issue.]
Topic:
Developer Tools & Services
SubTopic:
Xcode