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

Electron 11 stable-release for darwin x64 cannot run with rosetta2 on Apple Silicon #26530

Closed
Pharlon opened this issue Nov 17, 2020 · 6 comments
Labels
11-x-y platform/macOS status/confirmed A maintainer reproduced the bug or agreed with the feature

Comments

@Pharlon
Copy link

Pharlon commented Nov 17, 2020

Preflight Checklist

  • [ ☑️] I have read the Contributing Guidelines for this project.
  • [ ☑️] I agree to follow the Code of Conduct that this project adheres to.
  • [ ☑️] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

We still need to work with Electron build for arch x86_64 under rosetta2, due to pretty complex c++ addon which cannot easily rebuild for arm64.
Every thing works fine until our mac upgrade to macOS 11.0.1, the app is not supported any more

  • Electron Version:
    • 11.0.0 stable
  • Operating System:
    • Apple Silicon MacOS 11.0.1
  • Last Known Working Electron version:
    • MacOS 11.0 beta

Expected Behavior

works with rosetta2

Actual Behavior

electron.app is not supported

To Reproduce

run 'electron-v11.0.0-darwin-x64' directly on apple silicon with latest big sur

Screenshots

image

image

Additional Information

@ckerr
Copy link
Member

ckerr commented Nov 17, 2020

CC @MarshallOfSound @jkleinsc

@ghost
Copy link

ghost commented Nov 17, 2020

I'm having exactly the same issue: my app worked under Rosetta2 when still running Big Sur beta, but after upgrading to the official Big Sur release, the app doesn't start anymore and has the "no sign" in the icon. Command line:

% open MyApp.app 
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10661 "(null)" UserInfo={_LSLine=3665, _LSFunction=_LSOpenStuffCallLocal}

@MarshallOfSound
Copy link
Member

I can repro this, I'm assuming though that this is specific to the DTK and will not occur on M1 machines. I'm just checking up on this though, will see what I find.

@ckerr ckerr added the status/confirmed A maintainer reproduced the bug or agreed with the feature label Nov 17, 2020
@MarshallOfSound
Copy link
Member

Confirmed that this will work just fine on the M1 machines. If you want to workaround this on your DTK ensure you launch the app from terminal directly. E.g.

./MyApp.app/Contents/MacOS/MyApp

@ghost
Copy link

ghost commented Nov 18, 2020

Thanks @MarshallOfSound! I can confirm that the workaround works in DTK.

@ghost
Copy link

ghost commented Nov 24, 2020

I updated to 11.0.3 and now the app works again normally. This was included in 11.0.2: #26570, might be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11-x-y platform/macOS status/confirmed A maintainer reproduced the bug or agreed with the feature
Projects
None yet
Development

No branches or pull requests

3 participants