Apple wants apps to be signed. With newer MacOS versions, unsigned apps look less and less welcome.
As a cross-platform developer with almost no knowledge of Apple specifics, I have to learn how to sign Apple apps. A step-by-step recipe would be helpful.
So far I understood all the following is necessary:
- Register for an Apple ID [1].
- Agree with endless pages of legalese.
- Apply for an Apple developer account [2].
- Choose among several categories (individual, nonprofit, government, ...).
- Accept further pages of legalese.
- Agree with unspecified membership fees that are waived for open-source projects.
- Wait for unspecified time until you will or will not be admitted by Apple.
- Create a certificate from Xcode.
- Open or create an arbitrary project to get to the main menu.
- In the main menu (Xcode) > Preferences > Accounts > Manage Certificates > "+" (bottom left) to create certificate.
- In the main menu (Xcode) > Preferences > Accounts > Download Manual Profiles. Seems to create a file with extension
.developerprofile
.
- From here, an unknown number of steps is missing....
- Maybe the last step involves the command
codesign
[3],codesign -s <identity> --keychain <full-path-to-keychain> <path-to-disk-image>
- What is
<identity>
? - What is the keychain file?
- What is
Who can confirm or correct the above, and supply the missing steps?
Note that the build process shall ultimately be run from CMake. Therefore command-line tools are preferred over GUI actions.
[1] https://appleid.apple.com/account