0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

初心者とCommand PhaseScriptExecution failed with a nonzero exit code

Posted at

初めてCommand PhaseScriptExecution failed with a nonzero exit codeが起きました。

ただし自分の場合は単純な原因でした。
一つの例として共有します。

状況

環境

・xcode 12.4
・CocoaPods 1.10.1
podで導入したライブラリ
・R.swift・Realm

ビルド実行時に「Command PhaseScriptExecution failed with a nonzero exit code」が発生しビルドが止まってしまう。

原因

プロジェクト名.xcodeprojを開いていた。

解決策

プロジェクト名.xcworkspaceを開き、ビルドが成功しました。

みたことがないエラーが起きると焦ってしまいますが落ち着いて対応していきたいです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?