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.
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.
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.
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.
It would seem you have Xcode 4's "Find Implicit Dependencies" enabled. Note that this is enabled by default.
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.).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With