問題描述
公證問題:altool 不在 PATH 中? (Notarize issue: altool not in PATH?)
檢查路徑:</p>
sudo rm ‑rf /Library/Developer/CommandLineTools
xcode‑select ‑‑install
sudo xcode‑select ‑r
這是在驅動器根級別的“庫”目錄中,而不是“用戶”目錄中。帳戶“圖書館” 目錄。所以這一切都很好(我猜),但我仍然得到上述錯誤。另外,如果我查看目錄 /Library/Developer/CommandLineTools/usr/bin
,我看不到這個“altool”。是不是在別的地方?
我做錯了什麼嗎?如果我輸出 PATH(如下),我看不到對 CommandLineTools 目錄的任何引用。安裝程序 pkg 沒有這樣做是不是很奇怪?
我很猶豫“嘗試任何東西”。但我已經到了這一點。接下來我可以嘗試什麼?
echo "$PATH"
參考解法
方法 1:
You need to install Xcode ‑ the command line tools do not include altool, but Xcode does.
Assuming you install Xcode to /Applications you will find altool at /Applications/Xcode.app/Contents/Developer/usr/bin/altool
參考文件