Tylemagne/TFM

MacOS .app builds will not open on Monterey

Opened this issue · 1 comments

asaub commented

In order to use the .app, I had to do the following:

chmod +x tfm10-mac-metal.app/Contents/MacOS/tfm10-mac-metal
xattr -r -d com.apple.quarantine tfm10-mac-metal.app

Otherwise we get

~/Desktop $ open tfm10-mac-metal.app
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600003f3c8d0 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
asaub commented

The solution would be to sign the builds with a valid Apple Developer certificate, and also mark the executable as executable in the .app.