[Carthage]Command PhaseScriptExecution failed with a nonzero exit code[エラー]

表題通り、下記エラーが発生した時の対処法

Command PhaseScriptExecution failed with a nonzero exit code


方法①

carthage bootstrap --platform iOS

これでも同じエラーが出る場合は下記の方法②


方法②

carthageディレクトリを削除

carthage bootstrap --platform ios