iOS framework addition failed due to a Cocoapods installation failure.の対処法

Unityでビルドしようとすると、以下のようなエラーが。

iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.

解決法

コマンドを使って解決しました。
Macの場合はターミナルを起動します。

まず、ターミナルで

emacs -nw ~/.bash_profile

と入力し、~/.bash_profileをエディタで開きます。(今回はemacsにしましたが、vimなどなんでも大丈夫です)

そこに

export LC_ALL="en_US.UTF-8"

という1行を追加。

その後、変更を保存して再びターミナルに戻ったあと

source ~/.bash_profile

で更新します。

これで無事ビルドが通りました!!

コメント