LoginSignup
12
10

More than 5 years have passed since last update.

Xcode 10 & New Build System (Default) でビルドするまで

Posted at

前提

- Version 10.0 (10A255)
- macOS Sierra 10.13.6 以降
- Swift 4
- iOS 12

エラーメッセージ

Xcode 10 でビルドしようとしたら、
Multiple commands error when building with Xcode 10
が出てビルドが通らなかった。

設定

  • Workspace Settings を選択
    スクリーンショット 2018-09-21 1.38.09.png

  • New Build System を選択(Xcode 10 だと基本的に選択されている)
    スクリーンショット 2018-09-21 1.38.19.png

  • Product Name の箇所を書き換える
    スクリーンショット 2018-09-21 1.40.03.png
    Product Name に適当な文字列($(TARGET_NAME)basi)入れるとビルドが通るようになる。
    一度ビルドが通るようになれば、Product Name を $(TARGET_NAME) に戻しても問題なくビルドが通る。

上記の設定をしてもビルドが通らない場合は、New Build System -> Legacy Build System に切り替えることでビルドが通るようになる。

参考

12
10
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
12
10