-
Notifications
You must be signed in to change notification settings - Fork 220
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
Crashes on Apple Silicon (arm64) #239
Comments
You'll have to sign the ARM64 binary for it to run on M1 Macs. |
Could you give some hints/search queries/instructions on how to sign ARM64 binary? My initial search didn't yield anything useful. Out of curiosity: how other tools are able to build universal binaries in CI? Upd. $ codesign --force --sign "<certificate_name>" /Applications/openboardview.app
/Applications/openboardview.app: replacing existing signature
$ code sign -dv --verbose=4 /Applications/openboardview.app
1.67.2
c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
arm64 However, I got the same error on launch. |
You'll most likely need an Apple developer account to sign with your own developer certificate. You can either generate an XCode project with CMake and link your developer account inside the XCode project, or use the I don't know how other projects do it, I haven't looked into it, but either way, I wouldn't be able to test the app in a real environment without the required hardware. Previously we used Travis as a CI solution and it took care of building the macOS app as well, but since it became a mess I just build the app on my MacBook Pro 2007. |
@cbusillo built a universal binary of the development release from an M1 machine and signed it with their Apple Developer certificate so it should run natively on both x86_64 and arm64. |
@Bobronium , Thank you for the solution. |
Neither the provided binary nor the command added by @Bobronium seem to work. Maybe it's due to MacOS updates maybe not but any help would be appreciated. I'm on an M2 Pro Mac Mini with the latest MacOS version (Ventura 13.5). L.E: Nevermind, I just had to go in the system settings -> security and allow the provided binary to open. |
Can you tell please how to do it? |
What should I do in this situation (base) tanpeter@MacBook-Pro ~ % codesign --force --deep --sign - /Applications/CLion.app /Applications/CLion.app: replacing existing signature |
Hello! I've tried to build the tool on MBP14 with M1 Pro. Build finished successfully and produced a .dmg, however .app inside crashed upon launching. Any ideas how it can be fixed?
Also it would be great to have universal binary available for both architechtures.
inb4: installing rosetta is a last resort option, I'd want to avoid it if possible.
$ ./build.sh output
Crash report
The text was updated successfully, but these errors were encountered: