Compiling on m1 arm64 yields x64 app #4475
Labels
area-setup
Installation, setup, requirements, maui-check, workloads, platform support
partner/macios
Issues for the Mac / iOS SDK
platform/macOS 🍏
macOS / Mac Catalyst
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Projects
Milestone
Description
When starting a new project as described in the installation manual, upon executing
dotnet build -t:Run -f net6.0-maccatalyst
an application spins up. Upon closer inspection, this seems to be an x86_64 executable.Running
dotnet build -t:Run -f net6.0-maccatalyst --use-current-runtime
ordotnet build -t:Run -f net6.0-maccatalyst -r osx.12-arm64
(rid obtained from: https://docs.microsoft.com/en-us/dotnet/core/rid-catalog#macos-rids) produces an error message:respectively
While maui is usable on the latest macos with an m1 chip, the fact that it's producing a non-native application by default does have a performance / time penalty which significantly slows the development process. I am aware that this framework is currently very experimental, and I'm using it only in this context.
Steps to Reproduce
dotnet new maui -n "MyMauiApp"
dotnet build -t:Run -f net6.0-maccatalyst
Activity Monitor
or observe the outputMyMauiApp -> /.../MyMauiApp/bin/Debug/net6.0-maccatalyst/maccatalyst-x64/MyMauiApp.dll
Version with bug
Preview 12 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
MacOS 12.2
Did you find any workaround?
Compiling (by default) for x64 works fine, it launches through rosetta.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: