kotatogram-desktop
kotatogram-desktop copied to clipboard
macOS arm64 binary doesn't launch
Steps to reproduce
- Copy .app file from dmg to Applications folder.
- Right click and click open.
Expected behaviour
The app launches.
Actual behaviour
macOS says that it cant open the app.

Operating system
macOS 12.2 Beta (21D5025f)
Version of Kotatogram Desktop
1.4.6 beta (TD 3.3)
Installation source
Static binary from official website
Logs
No response
Well, we don't have mac hardware, so any help from your side on why this may happen will be highly appreciated
Well that was an extremely fast reply
Can you tell me some ways to find the problem? I am on an M1 Macbook Air 2020 And 1.4.4 works fine
You were having some issues with macOS builds, maybe that is related?
I can suggest the Linux way to get helpful logs: try to run the application from terminal. Both the .app and actual binary inside .app.
You were having some issues with macOS builds, maybe that is related?
Well, 1.4.6 is built with other build method. Previously we used packages from brew, now we're using tdesktop's build scripts. That way offers support for macOS 10.12+ and native ARM support.
The downside is it builds 6 hours on github actions :rofl:
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x6000036c13b0 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
This error in terminal
It's when try to run the .app I guess, what about the actual binary?
It doesn't let it run for security reasons
Can you overcome that somehow?
Let me try
zsh: killed /Users/shreyans/Downloads/Kotatogram.app/Contents/MacOS/Kotatogram
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Just this after overriding security policy
:sob: just killed?
Yeah this is the only logging that happens after launching the binary directly
Maybe because you switched from x86_64 only to universal binary?
macOS is a murderer :see_no_evil:
Maybe because you switched from x86_64 only to universal binary?
Maybe, I don't know much about macOS internals
I think you should atleast stop the update rollout as clicking update button in app breaks it
But a person in kotato's telegram group says it works :thinking:
Is he on apple silicon running kotato 1.4.6 with macOS Monterey?
He is on x64 hackintosh IIRC, I don't remember the version though
works perfecty if I force it to run through rosetta which means something is wrong with the arm64 binary
I wonder what's wrong with arm64 binary, but looks like macOS is not going to tell that
I found the issue!
Something is going wrong with app signing so only the x86_64 binary is getting correctly signed.
I locally signed the app with sudo codesign --force -- deep --sign - /Path/to/App.app
kotato has no sign...
sudo codesign --verify --verbose ./Path/to/App.app
./Kotatogram.app: code object is not signed at all
In architecture: arm64
What do you mean no sign?
I think you mean the x86_64 binary is signed but just not verified by apple
I think you mean the x86_64 binary is signed but just not verified by apple