dotnet / dotnet/macios

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

Open
#22,243 9 comments 0 reactions 0 assignees View on GitHub
bug mlaunch
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

### 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

```shell
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.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.