Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Xcode from building subprojects every time

Tags:

xcode

ios

build

I have several subprojects in my project which are get built every time, even they are not changed and not in main project's target dependencies. Is there a way to prevent Xcode from doing this? It takes too much time for all the subprojects to build every time.

like image 784
peetonn Avatar asked May 24 '13 07:05

peetonn


People also ask

How to stop automatic build in Xcode?

Open your storyboard (make sure it is in the active tab), then uncheck Editor > Automatically Refresh Views. This will stop Xcode from automatically building the storyboard every time you change your code.

How to stop auto build in Xcode 10?

Thankfully, you can disable these automatic rebuilds by opening any file in Interface Builder, going to Editor menu and unchecking Automatically Refresh Views. After this change, you'll now have to manually trigger an IB-specific build when you want to see the preview of your @IBDesignable views.

What is Xcode build target?

A Target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.


1 Answers

It would seem you have Xcode 4's "Find Implicit Dependencies" enabled. Note that this is enabled by default.

  • Product > Edit Scheme…
  • Build (in left column)
  • UNCHECK "Find Implicit Dependencies"

Xcode will then only build the dependencies which are out of date and specified as dependencies (or dependencies of a dependency).

If you find that is not the case, then you may want to investigate what causes the build to retrigger (e.g. generated sources, relinking against dependencies which needed to be rebuilt, etc.).

like image 51
justin Avatar answered Oct 12 '22 21:10

justin