Skip to content

[CLI] Running projects on terminal targeting iOS fails with MSB3073 error #25112

@Marnie-Majait

Description

@Marnie-Majait

Description

Running projects on terminal targeting iOS fails with MSB3073 error

Notes:

  1. We set the XCode both on global and VSCode as 26.3 as .NET 11 P3 is looking for XCode 26.3, it seems that it was looking for iOS 26.2
  2. iOS 26.2 is not appearing anymore on our XCode after installing iOS 26.3:
Image Image
  1. We also tried deleting iOS 26.2 component to see if the iOS 26.2 would appear again but it still didn't work
  2. We can also reproduce the issue using .NET 10 with Xcode 26.2
  3. Specifying the simulator using device identifier would successfully deploy the app to iOS 26.3 simulator.
  4. This issue can be reproduced on MAUI/MAUI Blazor/iOS App.

Steps to Reproduce

  1. Install the .NET 11 Preview3 from here.
  2. Install MAUI workload from the rollback file along with the necessary feeds: 11.0.0-preview.3_rollback.json
  3. Create an empty folder name it "sample" and open it on terminal/CMD
  4. Run the command dotnet new maui
  5. Run the command dotnet build sample.csproj -f net11.0-ios
  6. Run the command dotnet build sample.csproj -f net11.0-ios -t:Run

Actual Behavior:
There's a MSB3073: The command "/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net11.0_26.2/26.2.11588-net11-p3/tools/bin/mlaunch --launchsim bin/Debug/net11.0-ios/iossimulator-arm64/sample.app/ --device :v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-26-2,devicetype=com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-M5-12GB --stdout /dev/ttys004 --stderr /dev/ttys004 --wait-for-exit:true -- " exited with code 1. error

Image

Expected Behavior:
The app should run using terminal without any errors or warnings.

Version with bug

.NET SDK 11.0.100-preview.3.26203.107

Is this a regression from previous behavior?

Yes, this is a regression. The issue cannot be repro on .NET SDK version 11.0.100-preview.2.26154.117.

Affected platforms

iOS

Metadata

Metadata

Labels

bugIf an issue is a bug or a pull request a bug fixmsbuildIssues affecting our msbuild tasks/targets

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions