可以在 macOS 10.15 Catalina 中使用 notarytool 吗?

huangapple go评论63阅读模式
英文:

Is it possible to use notarytool in macOS 10.15 Catalina?

问题

我必须在 macOS 10.15 Catalina 上暂时使用 XCode 12.4 进行开发。

可以使用 notarytool 代替 altool 吗?

我已将 notarytool 从 XCode 13.4 开发工具复制到 usr/local/bin 文件夹。在 shell 中运行时:

xcrun notarytool submit myApp.zip

我收到以下错误:

> xcrun: error: 无法执行工具 "/usr/local/bin/notarytool"
> 因为它需要更新版本的 macOS。


没有解决方案的情况下,我有这两个选项:

作为最后的手段,我可以使用 web API 进行认证:

通过 web 提交软件进行认证

或者每次启动时引导到我的 macOS 12 Monterey 分区。

英文:

I have to use XCode 12.4 with macOS 10.15 Catalina for a while still for Development.

Is it possible to use notarytool instead of altool?

I have copied notarytool from XCode 13.4 Developer Tools to my usr/local/bin folder.
When I run in shell:

xcrun notarytool submit myApp.zip

I get this error:

> xcrun: error: unable execute utility "/usr/local/bin/notarytool"
> because it requires a newer version of macOS.


Without a solution, I have those 2 options:

As a last resort, I could notarize with the web API:

Submitting software for notarization over the web

Or boot into my macOS 12 Monterey partition each time.

答案1

得分: 3

我找到了一个简单的解决方案:
您不必使用 xcrun

只需在 usr/local/bin 或任何可执行路径中使用 notarytool,就像这样简单地使用它:

notarytool submit myApp.zip

这样可以避免错误消息,而在 macOS 10.15 Catalina 中使用 notarytool 进行公证工作正常。

英文:

I found an easy solution:
You don't have to use xcrun!

With notarytool in usr/local/bin or any executable path, just use it plain like this:

notarytool submit myApp.zip

This avoids the error message and the notarization with notarytool with macOS 10.15 Catalina works fine.

huangapple
  • 本文由 发表于 2023年4月17日 04:29:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76030163.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定