LoginSignup
0
0

License-Plisterror使用時にエラー build: Command PhaseScriptExecution failed with a nonzero exit code

Last updated at Posted at 2023-03-26

【エラー内容】

CocoaPodsでLicensePlisterror使用時で以下のエラーが発生した場合の対処法です。
自分のメモ、備忘録

line 4: /usr/local/bin/license-plist: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

【原因】

license-plistのシンボリックリンクを作成してなかったことが原因でエラーになったようです。

【解決方法】

以下の手順でエラーを解決できます。

1. Homebrewをインストールする

Homebrewは、macOSでソフトウェアをインストールするためのパッケージマネージャーです。

ターミナルで以下のコマンドを実行して、Homebrewをインストールします。

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. license-plistをインストールする

CocoaPodsのスクリプトに必要なlicense-plistをインストールします。

ターミナルで以下のコマンドを実行します。

brew install license-plist

3. license-plistを/usr/local/binにシンボリックリンクを作成する

CocoaPodsのスクリプトに必要なlicense-plistを/usr/local/binにシンボリックリンクを作成します。

ターミナルで以下のコマンドを実行します。

sudo ln -s /opt/homebrew/bin/license-plist /usr/local/bin/license-plist

以上でエラーが解消され、正常にビルドできるようになります。

おわりに

間違っていたら教えてください!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0