[Bug] iOS and MacCatalyst Samples won't launch
See original GitHub issueFor iOS I ran:
./bin/dotnet/dotnet build src/Controls/samples/Controls.Sample.iOS/Maui.Controls.Sample.iOS-net6.csproj -t:Run
And got this error:
Failed to launch the simulator: Could not find file "/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.iOS/bin/Debug/net6.0-ios/iossimulator-x64/Maui.Controls.Sample.iOS.app/Maui.Controls.Sample.iOS"
EXEC : error MT1008: Failed to launch the simulator: Could not find file "/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.iOS/bin/Debug/net6.0-ios/iossimulator-x64/Maui.Controls.Sample.iOS.app/Maui.Controls.Sample.iOS" [/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.iOS/Maui.Controls.Sample.iOS-net6.csproj]
/Users/eilonlipton/GitHub/maui/bin/dotnet/sdk/6.0.100-preview.5.21275.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(852,5): error MSB3073: The command "/Users/eilonlipton/GitHub/maui/bin/dotnet/packs/Microsoft.iOS.Sdk/14.5.100-preview.5.884/tools/bin/mlaunch --launchsim bin/Debug/net6.0-ios/iossimulator-x64/Maui.Controls.Sample.iOS.app/ --device ":v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-14-5,devicetype=com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation" --stdout /dev/ttys000 --stderr /dev/ttys000 --wait-for-exit" exited with code 1. [/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.iOS/Maui.Controls.Sample.iOS-net6.csproj]
And for MacCatalyst I ran:
./bin/dotnet/dotnet build src/Controls/samples/Controls.Sample.MacCatalyst/Maui.Controls.Sample.MacCatalyst-net6.csproj -t:Run
And got this error:
nction=_LSOpenStuffCallLocal}
/Users/eilonlipton/GitHub/maui/bin/dotnet/sdk/6.0.100-preview.5.21275.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(852,5): error MSB3073: The command "open bin/Debug/net6.0-maccatalyst/maccatalyst-x64//Maui.Controls.Sample.MacCatalyst.app" exited with code 1. [/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.MacCatalyst/Maui.Controls.Sample.MacCatalyst-net6.csproj]
And I tried another command line to launch MacCatalyst:
dotnet build src/Controls/samples/Controls.Sample.MacCatalyst/Maui.Controls.Sample.MacCatalyst-net6.csproj -t:Run -p:Configuration=Debug -p:TargetFramework=net6.0-maccatalyst --no-restore
And got the same error:
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3665, _LSFunction=_LSOpenStuffCallLocal}
/usr/local/share/dotnet/sdk/6.0.100-preview.4.21255.9/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(881,5): error MSB3073: The command "open bin/Debug/net6.0-maccatalyst/maccatalyst-x64//Maui.Controls.Sample.MacCatalyst.app" exited with code 1. [/Users/eilonlipton/GitHub/maui/src/Controls/samples/Controls.Sample.MacCatalyst/Maui.Controls.Sample.MacCatalyst-net6.csproj]
Is there a different command line I should use for iOS and MacCatalyst?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Mac Catalyst app won't launch in Xcode
I'm building an app for deployment on iPhone, iPad and Mac Catalyst. I am using Automatic Code Signing. Project build without a single ......
Read more >Build error MT0057 for .Net Maui iOS, Mac Catalyst ...
I can build and run for Mac Catalyst fine with this command dotnet build -t:Run -f net6.0-maccatalyst MyApp.csproj but when I try to...
Read more >netsdk1005 maui, can't build
Build and run app, on an iPad connected to the Mac, running iOS 16.3. Runs fine. Deployment target is info.plist is blank. In...
Read more >macOS Environment Setup for MAUI Development
The goal of MAUI is to unify platform-native APIs for Android, iOS, macOS, and Windows into a single API for a write-once, run-anywhere ......
Read more >Where Mac Catalyst Falls Short - High Caffeine Content
There are many reasons it falls flat, but let's start with the basics: Xcode's 'Document App' template for iOS crashes on launch when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI for anyone that arrives here. The iOS Samples are broken until SSL fixes land in .NET 6 P 6
This seems to be already fixed.