You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
With
altool
being deprecated andnotarytool
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 thenotarytool
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 withxcrun
produces following output:Running
notarytool
directly, omittingxcrun
, works fine.Since this project uses
xcrun
to runnotarytool
it does not handle this scenario. My proposition is to add an option callednotarytoolPath
that would contain path to thenotarytool
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.The text was updated successfully, but these errors were encountered: