peetonn
peetonn

Reputation: 3052

Prevent Xcode from building subprojects every time

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.

Upvotes: 26

Views: 6584

Answers (1)

justin
justin

Reputation: 104698

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.).

Upvotes: 45

Related Questions