Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title>iOS simulator does not launch #1543

Open
JasonGCross opened this issue Oct 17, 2024 · 1 comment
Open

[BUG] <title>iOS simulator does not launch #1543

JasonGCross opened this issue Oct 17, 2024 · 1 comment
Labels
area-maui bug Something isn't working needs-more-info Needing more information, waiting on OP

Comments

@JasonGCross
Copy link

Describe the Issue

Opening a new bug here as requested from: Maui team

Problem encountered on maui tutorial
Operating System: macos

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

macOS version: Sequoia 15.0.1
Visual Studio Code version: 1.94.2 (Universal)

Repro steps:

create a new blank .NET MAUI project
select iOS as a debug target
click "Run and Debug"
Expected outcome:

the iOS simulator will open
Observed outcome:

the iOS simulator never opens
BUT build does succeed, showing debugger attached
Terminal output:

Executing task: dotnet build -t:Build -p:Configuration=Debug -f net7.0-ios -r iossimulator-x64 -p:CustomAfterMicrosoftCSharpTargets="/Users/{user_name}/.vscode/extensions/ms-dotnettools.dotnet-maui-1.3.29-darwin-arm64/dist/resources/Custom.After.Microsoft.CSharp.targets" -p:MauiVSCodeBuildOutputFile="/var/folders/km/zsdqbjrd2rb6hzkwvh95r7ww0000gn/T/dotnet-maui/maui-vsc-5abdbe76-2ed9-4f95-84dd-026a618550f1.json" -p:XamlTools="/Users/{user_name}/.vscode/extensions/ms-dotnettools.csharp-2.50.27-darwin-arm64/.xamlTools" /Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj
Determining projects to restore...
All projects are up-to-date for restore.
/usr/local/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument. [/Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj::TargetFramework=net7.0-ios]
Detected signing identity:

Bundle Id: com.companyname.mauiapp1
App Id: com.companyname.mauiapp1
Including assemblies for Hot Reload support
MauiApp1 -> /Users/{user_name}/Projects/MauiApp1/bin/Debug/net7.0-ios/iossimulator-x64/MauiApp1.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink

Build succeeded.

/usr/local/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument. [/Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj::TargetFramework=net7.0-ios]
1 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.82

Steps To Reproduce

macOS version: Sequoia 15.0.1
Visual Studio Code version: 1.94.2 (Universal)

Repro steps:

  1. create a new blank .NET MAUI project
  2. select iOS as a debug target
  3. click "Run and Debug"

Expected Behavior

the iOS simulator will open

Environment Information

Observed outcome:

the iOS simulator never opens
BUT build does succeed, showing debugger attached
Terminal output:

Executing task: dotnet build -t:Build -p:Configuration=Debug -f net7.0-ios -r iossimulator-x64 -p:CustomAfterMicrosoftCSharpTargets="/Users/{user_name}/.vscode/extensions/ms-dotnettools.dotnet-maui-1.3.29-darwin-arm64/dist/resources/Custom.After.Microsoft.CSharp.targets" -p:MauiVSCodeBuildOutputFile="/var/folders/km/zsdqbjrd2rb6hzkwvh95r7ww0000gn/T/dotnet-maui/maui-vsc-5abdbe76-2ed9-4f95-84dd-026a618550f1.json" -p:XamlTools="/Users/{user_name}/.vscode/extensions/ms-dotnettools.csharp-2.50.27-darwin-arm64/.xamlTools" /Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj
Determining projects to restore...
All projects are up-to-date for restore.
/usr/local/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument. [/Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj::TargetFramework=net7.0-ios]
Detected signing identity:

Bundle Id: com.companyname.mauiapp1
App Id: com.companyname.mauiapp1
Including assemblies for Hot Reload support
MauiApp1 -> /Users/{user_name}/Projects/MauiApp1/bin/Debug/net7.0-ios/iossimulator-x64/MauiApp1.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink

Build succeeded.

/usr/local/share/dotnet/sdk/8.0.403/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument. [/Users/{user_name}/Projects/MauiApp1/MauiApp1.csproj::TargetFramework=net7.0-ios]
1 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.82

Terminal will be reused by tasks, press any key to close it

@JasonGCross JasonGCross added the bug Something isn't working label Oct 17, 2024
@emaf
Copy link
Member

emaf commented Oct 17, 2024

Does this happen if you target .NET 8?

Also, are you running on an Intel based Mac?

@emaf emaf added needs-more-info Needing more information, waiting on OP area-maui labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working needs-more-info Needing more information, waiting on OP
Projects
None yet
Development

No branches or pull requests

2 participants