xcodebuild far slower than Xcode?

Building from the command line with xcodebuild is orders of magnitude slower than building the same project, same scheme, same target from within Xcode. Does anyone know why this might be the case and how I might speed up my xcodebuild build?

I'm invoking xcodebuild as follows:

xcodebuild -scheme <SCHEME> -workspace <WORKSPACE> -configuration Debug -sdk iphonesimulator7.0 -jobs 12 build

for building on a 12-core Mac Pro. I guessed at the -jobs setting but it seems reasonable. Does anyone have any advice? Is there a way, by analyzing Xcode's build log, to tell what settings for xcodebuild most closely map to what Xcode itself is using? Thanks!


While this alone may not explain the slowness of xcodebuild compared to IDE, I've seen some improvements if I disable Spotlight indexing on ~/Library/Developer/Xcode/DerivedData directory.

Need Your Help

Server mapping without url

java servlets url-rewriting web.xml

I have a custom router and forward requests to specified servlets after some processes. So servlets are actually private in web.xml but router itself.

How to successfully use an existing workspace in multiple versions of eclipse?


I am working on a large project where there are mutiple eclipse-based IDEs that are used for different (but overlapping) tasks. For example, we use an eclipse-based IDE to develop business rules, ...