When i try to run my app through XCode iPhone simulator i get an error
"No simulator runtime version from [<DVTBuildVersion 21C62>, <DVTBuildVersion 21E213>, <DVTBuildVersion 21F79>] available to use with iphonesimulator SDK version <DVTBuildVersion 22A3362>"
I tried to update visual studio, xCode, restarting both machines, the error still remains.
I am on visual studio 2022, my project is using .net 8, and I am using XCode 16 for the simulator.
2
Answers
Easy option is to launch Xcode and download the new simulator.
For other options see:
https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
This is because the necessary iOS platform support isn’t installed on the macOS machine. You can fix it by:
open Xcode, go to the menu "Xcode (top left) -> Settings -> Components", and make sure the platform component for the latest iOS version is installed (iOS 18 in this case, in Xcode 16.0):
For more information, you can check this github wiki: The build fails with "No simulator runtime version from …".