macOS公证:找不到altool [英] macOS notarization: altool cannot be found

查看:754
本文介绍了macOS公证:找不到altool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始构建公证自动化脚本.

I wanted to start building a notarization automation script.

但是,当我尝试在Terminal中使用'xcrun altool'时,出现以下错误:

However, when I try to use the 'xcrun altool' in Terminal, I get the following error:

xcrun: error: unable to find utility "altool", not a developer tool or in PATH

我使用的是macOS 10.14.5,Xcode 10.2.1.

I'm on macOS 10.14.5, Xcode 10.2.1.

然后我特别下载并安装了Xcode命令行工具-仍然出现相同的错误.

I then especially downloaded and installed Xcode Command Line Tools - still get same error.

订书机之类的其他工具也可以工作.

Other tools like stapler do work.

我检查了此目录,并且altool不存在:/Library/Developer/CommandLineTools/usr/bin

I checked this dir and altool is not there: /Library/Developer/CommandLineTools/usr/bin

知道发生了什么事吗?

谢谢!

推荐答案

您可以尝试xcode-select -r重置您的xcode选择.

You might try xcode-select -r to reset your xcode selection.

这篇关于macOS公证:找不到altool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆