-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Run MAUI app on M1 Mac without Rosetta 2 #4476
Comments
possible duplicate / related to: #4475 |
@YVbakker I saw that issue, but in my case, I can't even build. |
@kristinx0211 Exactly, you need to install Rosetta 2 which is something I'd like to avoid. |
Similar to #4475 |
In case anyone comes across this issue because they are seeing:
You need to install Rosetta on an M1 Mac in order to build an iOS app. See dotnet/runtime#74175 for the issue tracking enabling building natively on arm64. |
…, and android where possible As a result of dotnet#89027 and dotnet#74715, we can now build native arm64 cross compilers on linux and macos. This change adds the right references to the workload manifest so that they can be installed with maui and the mobile SDK's. win-arm64 is the only arm64 platform left and that is a work in progress. Contributes to dotnet#82495 Fixes dotnet/maui#4476
This should be resolved as of 8.0 RC2. Thanks! |
Description
I am trying to run a MAUI app on my M1 MacBook Pro. I don't have Rosetta 2 installed and when running
dotnet new maui && dotnet build -t:Run -f net6.0-maccatalyst
I get the following error:An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64/6.0.1/Sdk/../tools/mono-aot-cross' with working directory '/Users/collin/Programmieren/dotNET/babi-desktop'. Bad CPU type in executable
It seems like MAUI doesn't support the ARM architecture. Is this true?
Steps to Reproduce
dotnet new maui
)dotnet build -t:Run -f net6.0-maccatalyst
)Version with bug
Preview 12 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS, I was not able test on other platforms
Affected platform versions
macOS 12.1
Did you find any workaround?
Install Rosetta 2.
Relevant log output
Depends on
mlaunch
should ship a a fat binary wth both x86_64 and arm64 slices xamarin/xamarin-macios#15492The text was updated successfully, but these errors were encountered: