LoginSignup
59
58

More than 5 years have passed since last update.

Xcodeで並列ビルドを行う方法

Last updated at Posted at 2014-07-15

Xcodeはデフォルトではシングルタスクでビルドします。
cocos2d-xなど、大量のC++ファイルが含まれているプロジェクトでは完全ビルドに10分以上費やしたりします。

IDEで並列ビルド

以下のコマンドを叩きます。

defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks <並列数>

コマンドを叩いた後はXcodeを再起動する必要がありますが、効果は永続します。

CLIで並列ビルド

以下のようにビルドします。

xcodebuild -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=<並列数> ...

追記

Xcode5で確認していますが、Xcode4以下については未確認です。

59
58
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
59
58