Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

altool deprecated and replaced by notarytool #22

Closed
bradking opened this issue Jul 7, 2022 · 3 comments
Closed

altool deprecated and replaced by notarytool #22

bradking opened this issue Jul 7, 2022 · 3 comments

Comments

@bradking
Copy link

bradking commented Jul 7, 2022

Notarizing with xcnotary now sometimes reports the following warning from altool:

altool has been deprecated and, starting in fall 2023, will no longer be supported by the Apple notary service. You should start using notarytool to notarize your software.

See also the updated documentation from Apple (or this web archive snapshot).

@davidvartan
Copy link
Member

Thanks! Yeah, people should now just directly be using xcrun notarytool with the --wait argument to block until completion, which is what the original altool was missing for some reason. I've been meaning to archive this repo since (fortunately) there isn't a need for xcnotary anymore.

@bradking
Copy link
Author

bradking commented Jul 8, 2022

Yes. For reference, a call to xcnotary such as

xcnotary notarize "/path/to/Foo.app" -d "..." -k "..." ...

can be replaced with

ditto -c -k --keepParent "/path/to/Foo.app" "Foo.app.zip"
xcrun notarytool submit "Foo.app.zip" --keychain-profile "my-notarytool-profile" --wait
xcrun stapler staple "/path/to/Foo.app"

where the keychain profile was created with

xcrun notarytool store-credentials "my-notarytool-profile" --apple-id "..." --team-id "..."

which prompts for an app-specific password. The team id is available from the Apple ID's membership page.

@davidvartan
Copy link
Member

Yes, I've been using very similar steps. Glad they finally added this functionality.

I'm archiving the repo and linked to your comment in the README. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants