19
13

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.

【Xcode 12.1】line 144: ARCHS[@]: unbound variable Command PhaseScriptExecution failed with a nonzero exit code

Posted at

Xcode12.1で以下のエラーで実機ビルドとarchiveできなくなり数時間ハマった。

line 144: ARCHS[@]: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code

以下の方法で解決できました。

やった

  • プロジェクトのBuildSetting -> User Defined にVALID_ARCHSを追加。値は$(ARCHS_STANDARD)
  • pod install後にPodsプロジェクトのBase SDKをmacOSからiOSに変更(macOSだとARCHS_STANDARDの値がiOSと異なるので)

やらない

以下は解決方法としてぐぐると出てくるが実施しない

  • Excluded Architectureにarm64を追加する
19
13
3

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
19
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?