Codesign binary
$ ./detached-sig-create.sh <PATH_TO_P12>
$ tar xf signature-osx.tar.gz
$ signapple apply ./dist/Litecoin-Qt.app osx/dist
Setup notarytool (once only)
$ xcrun altool --list-providers -u "<APPLE_ID_EMAIL>" -p "@keychain:<apple-id-notarisation-app-specific-password>"
$ xcrun notarytool store-credentials --apple-id "<APPLE_ID_EMAIL>" --team-id "<TEAM_ID>"
Submit for notarisation
$ zip -r Litecoin-Qt.app.zip dist/Litecoin-Qt.app
$ xcrun notarytool submit Litecoin-Qt.app.zip --keychain-profile "lf-creds" --wait
Apply notarisation and save detach sigs
$ xcrun stapler staple dist/Litecoin-Qt.app
$ codesign -vvvv dist/Litecoin-Qt.app
$ spctl -a -vvvv dist/Litecoin-Qt.app
$ mv signature-osx.tar.gz <PATH_TO_RELEASE_BUILD_DIR>/litecoin-detached-sigs
$ mv dist/Litecoin-Qt.app/Contents/CodeResources <PATH_TO_RELEASE_BUILD_DIR>/litecoin-detached-sigs/osx/dist/Litecoin-Qt.app/Contents/
After notarisation, copy over detach sigs as below:
$ mv osx/dist/Litecoin-Qt.app/Contents/MacOS/Litecoin-Qt.x86_64sign <PATH_TO_RELEASE_BUILD_DIR>/litecoin-detached-sigs/osx/dist/Litecoin-Qt.app/Contents/MacOS/
$ mv dist/Litecoin-Qt.app/Contents/CodeResources <PATH_TO_RELEASE_BUILD_DIR>/litecoin-detached-sigs/osx/dist/Litecoin-Qt.app/Contents/CodeResources.x86_64