Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow notarization on macOS versions down to 10.15 #200

Closed
pjaspinski opened this issue Jun 6, 2024 · 1 comment · Fixed by #201
Closed

Allow notarization on macOS versions down to 10.15 #200

pjaspinski opened this issue Jun 6, 2024 · 1 comment · Fixed by #201
Labels
enhancement New feature or request released

Comments

@pjaspinski
Copy link
Contributor

pjaspinski commented Jun 6, 2024

With altool being deprecated and notarytool being available from Xcode 13, which requires macOS 11.3, it seems not possible to notarize apps on an older macOS version. Yet Apple provided a hacky way to achieve this, which is taking the notarytool binary from a newer os version and copying it to an older one. It works down to 10.15 (source).

The most obvious way to do this is to copy that binary into the directory that is normally used to keep notarytool, which is /Applications/Xcode.app/Contents/Developer/usr/bin/notarytool. Unfortunately, running it with xcrun produces following output:

pawel@mac ~ % xcrun notarytool --version
xcrun: error: unable execute utility "/Applications/Xcode.app/Contents/Developer/usr/bin/notarytool" because it requires a newer version of macOS.

Running notarytool directly, omitting xcrun, works fine.

Since this project uses xcrun to run notarytool it does not handle this scenario. My proposition is to add an option called notarytoolPath that would contain path to the notarytool binary. That binary would be called directly if provided. Proposed changes are in the linked pull request.

For anyone trying to get notarization to work using notarytool binary copied from a newer macOS: if you run into errors saying that you are missing /usr/lib/swift/libswift_Concurrency.dylib, use a binary extracted from Xcode 13.4.1 or Xcode CL Tools 13.4 and the error will go away.

@erickzhao erickzhao added the enhancement New feature or request label Jun 6, 2024
@pjaspinski pjaspinski changed the title Allow notarization on macOS versions down to 10.5 Allow notarization on macOS versions down to 10.15 Jun 7, 2024
Copy link

🎉 This issue has been resolved in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants