Skip to content

Can't find simulator when a particular iOS SDK version doesn't contain a simulator for that same SDK version #22243

@MohanadFalah

Description

@MohanadFalah

Description

Hi , dot net MAUI does not support the current version of iOS 18.3.1 ?!
we can not run any iOS app on Simulators.
Thank you.

Steps to Reproduce

In vs code when we try to run the iOS :
dotnet build -t:Run -f net9.0-ios

output :

MyApp net9.0-ios failed with 2 error(s) (3.6s) → bin/Debug/net9.0-ios/iossimulator-arm64/MyApp.dll
EXEC : error MT1206: Could not find the simulator runtime 'com.apple.CoreSimulator.SimRuntime.iOS-18-2'.
/usr/local/share/dotnet/sdk/9.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1175,5): error MSB3073: The command "/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.2/18.2.9180/tools/bin/mlaunch --launchsim bin/Debug/net9.0-ios/iossimulator-arm64/MyApp.app/ --device ":v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-18-2,devicetype=com.apple.CoreSimulator.SimDeviceType.iPad-mini-A17-Pro" --stdout /dev/ttys003 --stderr /dev/ttys003 --wait-for-exit:true" exited with code 1.

Link to public reproduction project repository

No response

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.14 SR1.4

Affected platforms

iOS

Affected platform versions

iOS 18.3.1

Did you find any workaround?

no

Relevant log output

MyApp net9.0-ios failed with 2 error(s) (3.6s) → bin/Debug/net9.0-ios/iossimulator-arm64/MyApp.dll
    EXEC : error MT1206: Could not find the simulator runtime 'com.apple.CoreSimulator.SimRuntime.iOS-18-2'.
    /usr/local/share/dotnet/sdk/9.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1175,5): error MSB3073: The command "/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.2/18.2.9180/tools/bin/mlaunch --launchsim bin/Debug/net9.0-ios/iossimulator-arm64/MyApp.app/ --device ":v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-18-2,devicetype=com.apple.CoreSimulator.SimDeviceType.iPad-mini-A17-Pro" --stdout /dev/ttys003 --stderr /dev/ttys003 --wait-for-exit:true" exited with code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixmlaunch

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions