mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Platform detection is not differentiating between x64 and arm64 OSX platform #920
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sajmonr on GitHub (Nov 3, 2023).
Electron.NET CLI and API version: 23.6.1
.NET Core version: I have tried both 6.x and 7.x and both give the same result.
Target build: macOS 14.1 (arm64)
I am using MacBook Pro with M2 Max (I am suspicious that this issue will be on any arm based Mac, however, I cannot confirm this.)
I created a Blazor server application with ElectronNET in it. The application itself works fine when running with regular
botnet runcommand, however, when I tryelectronize startthe web application will not start.The electron process seems to start - I can see the electron icon in the dock and I can
cmd + Qto quit it (which terminates the process) but I cannot see any window and the normal web app output is not shown in the console. The only thing in the console is the electron start output and then it stops.Steps to reproduce:
electronize start@sajmonr commented on GitHub (Nov 3, 2023):
I found a solution from a closed issue #776 (I missed it the first time) and it seems that works. Looking at it further, the problem seems to be that the platform auto detection is not checking whether osx is x64 or arm64.
The workaround, as mentioned in the issue, is to use
/target custom "osx-arm64;mac"OR to install the x64 SDK binaries for whatever framework you are targeting.