To clarify what I'm trying to do, in the hope that additional information can help others help me and to provide an example with "step-by-steps" of what I'm doing in case others are attempting similar things and having the same problems, here is what I'm doing in terms of the scenario, instructions I'm following, and what I've done so far.
Scenario:
I have an application add-on that I'm looking to distribute to customers via an online purchase, then a DMG download, and installation to the "/Users/Shared" folder.
The add-on is a single file, that if you right-click on has contents to it that makes it run.
I am using DropDMG to sign my DMG file, however, I need to code sign the application add-on for GateKeeper to allow the application to run it.
I have a Developer Application ID certificate and a Developer ID Installer certificate installed on my Mac which I can view in Keychain. I use the Developer Application ID certificate in the DropDMG application to sign the DMG file.
After installing during testing and seeing that GateKeeper doesn't recognize the application add-on file it won't let it run. So I realize that I need to code-sign the application add-on. However, since this wasn't built in Xcode I'm unsure how I can sign the file since that seems to be the primary method.
I've read the following articles:
-Notarizing macOS Software Before Distribution
https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution
- Customizing the Notarization Workflow
https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow
- Manually Sign an App
https://help.apple.com/xcode/mac/current/#/dev1bf96f17e
- Code Signing Guide: Section: How to Code Sign Manually
https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW6
From this research and some testing, I was able to run the following command in Terminal.
_codesign -s 'Developer ID Application: Example ID' -v "/Users/Shared/examplefile.pvm”
This runs, in that, I don't get any syntax errors, but it doesn't give me feedback even though I'm using "-v" for feedback.
I have read further that I will need a "plist" for signing to be possible. However, this again takes me back to Xcode where I'm not sure how to do that with my product add-on, since it's not an "application" per say.
I hope this helps others and if there are suggestions or help I would really appreciate it. This is the ONLY thing at this point prohibiting me from selling my product. I just need to get the application add-on signed, add the signed add-on to my DMG, create and sign the DMG, and then submit the signed DMG file with the signed application add-on to Apple's notarization service, and customers should be able to then use my product. Help! Calling out an SOS!
Topic:
Code Signing
SubTopic:
Notarization
Tags: