xcrun:エラー:開発者ツールまたはPATHにないユーティリティ「PackageApplication」が見つかりません



Xcrun Error Unable Find Utilitypackageapplication



スクリプト実行後のエラー:

xcrun: error: unable to find utility 'PackageApplication', not a developer tool or in PATH

Xcodeが9.0にアップグレードされると、コマンドとともにパッケージ化されます。次のエラーを表示します。



xcrun: error: unable to find utility 'PackageApplication', not a developer tool or in PATH

比較によると、Xcodeの新しいバージョンにはこのPackageApplicationがありません。
まず、古いバージョンのXcodeを見つけて、コピーします。
次のディレクトリに配置されます。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/

次に、コマンドを実行します



sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

次に、元のビルドファイルを削除して再パッケージ化します。
最後に、PackageApplicationダウンロードアドレスを添付します。
リンク: https://pan.baidu.com/s/1slG6C2p パスワード:vcn4