Skip to content

Commit e89e539

Browse files
committed
docs/BUILD: document notarytool to notarize (altool is deprecated)
Apple decomissioned the previous commands to notarize an app, they do not work anymore. Following https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool, `notarytool` should now be used.
1 parent 9f75be0 commit e89e539

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/BUILD.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,15 @@ $ # Sign with hardened runtime:
5757
$ codesign -f --deep --strict --timestamp -o runtime --entitlements ../../resources/MacOS/entitlements.plist -s CODESIGN_IDENTITY BitBox.app
5858
$ /usr/bin/ditto -c -k --keepParent BitBox.app BitBox.zip
5959
$ # Notarize
60-
$ xcrun altool --notarize-app --primary-bundle-id "ch.shiftcrypto.bitboxapp" --username "APPLE_ID" --password "PASSWORD" --file BitBox.zip
60+
$ xcrun notarytool submit --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" BitBox.zip
6161
$ # Check notarization status
62-
$ xcrun altool --notarization-info NOTARIZATION_ID --username "APPLE_ID" --password "PASSWORD"
62+
$ xcrun notarytool info --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" NOTARIZATION_ID
63+
```
64+
65+
If you don't know your TEAM_ID, you can find it in your Apple dev account or with:
66+
67+
```
68+
xcrun altool --list-providers --username "APPLE_ID" --password "PASSWORD"
6369
```
6470

6571
## Windows

0 commit comments

Comments
 (0)