Skip to content

"gm" can't be opened because Apple cannot check it for malicious software #1

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

Closed
loranger opened this issue Mar 31, 2022 · 8 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@loranger
Copy link

I met an issue with the workflow:

Once installed, as soon as I try it, I get a MacOS exception regarding the developer verification

verification

I had to go to the Security & Privacy pane of the System Preferences, then allow the gm execution

I triggered the workflow again, and I had to allow the script execution from the popup displayed.

Now everything works fine 👍🏻

I opened this issue in order to give a clue for anyone having trouble with this useful workflow which was not working since python2 is deprecated on mac.
Thank you so much @techouse for rewriting it using dart 👌🏻

@techouse
Copy link
Owner

techouse commented Mar 31, 2022

Hi,

I'm aware of that issue dart-lang/sdk#39106.

This feature is coming in Dart 2.17.0 dart-lang/sdk@6ef426d

Once Dart 2.17.0 gets released I'll re-compile and sign the bins. For now, you'll need to allow the exception in your macOS's System Preferences -> Security & Privacy.

@techouse
Copy link
Owner

@loranger Dart 2.17.0 just got released yesterday, so I'll recompile and sign the binaries as soon as I can. 🚀

@techouse
Copy link
Owner

@loranger v1.0.9 is now signed.

You can verify it with codesign if you wish 😊

@loranger
Copy link
Author

Thanks, but I'm afraid you won't like it…

Enregistrement.de.l.ecran.2022-05-13.a.09.43.00_9.43.57.mp4

@techouse
Copy link
Owner

techouse commented May 13, 2022

Every app downloaded from a non-Apple server will say that. Now it at least won't nag about the thing being unsigned and forcing you to go to you Mac's security setting and making an exception.

@loranger
Copy link
Author

That's what I did, and everything works fine (as it used to 👌🏻)

@techouse
Copy link
Owner

techouse commented May 13, 2022

It's somewhat weird because the binary itself is signed. If you check the signature

cd /path/to/the/alfred/workflow/
codesign -dv --verbose=4 gm

It will print:

Executable=/path/to/the/alfred/workflow/gm
Identifier=com.techouse.alfred-gitmoji
Format=Mach-O thin (x86_64)
CodeDirectory v=20400 size=44415 flags=0x0(none) hashes=1382+2 location=embedded
VersionPlatform=1
VersionMin=658688
VersionSDK=721152
Hash type=sha256 size=32
CandidateCDHash sha256=06510b21c312d52d2c45f3aa800496ad68b532de
CandidateCDHashFull sha256=06510b21c312d52d2c45f3aa800496ad68b532de98934ae11d2dd59c15318e1c
Hash choices=sha256
CMSDigest=06510b21c312d52d2c45f3aa800496ad68b532de98934ae11d2dd59c15318e1c
CMSDigestType=2
Executable Segment base=0
Executable Segment limit=3784704
Executable Segment flags=0x1
Page size=4096
CDHash=06510b21c312d52d2c45f3aa800496ad68b532de
Signature size=9099
Authority=Apple Development: [email protected] (P4674Z4B9E)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Timestamp=12 May 2022 at 21:26:51
Info.plist=not bound
TeamIdentifier=6LYC36B94Q
Sealed Resources=none
Internal requirements count=1 size=200

EDIT: Seems I'll have to carefully go through Apple's docs again and not just sign it but also notarize it. 🤪

@techouse techouse reopened this May 13, 2022
@techouse techouse self-assigned this May 13, 2022
@techouse techouse added the bug Something isn't working label May 13, 2022
@techouse techouse changed the title Developer cannot be verified "gm" can't be opened because Apple cannot check it for malicious software May 13, 2022
@techouse
Copy link
Owner

@loranger v1.1.0 is now properly signed and notarised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants