Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcodebuild excruciatingly slow

I use TeamCity CI to build my Apps, when I build them using xcode (any configuration), a clean build takes just less than 1.5 minutes, but when I run the same command in xcodebuild its excruciatingly slow, take more than 10 minutes. Any ideas why this is happening?

I use precompiled prefix header and even tried to filter the console output to just warnings and errors, still its like 10 minutes.. :(

xcodebuild -project %appname%.xcodeproj -configuration AdHoc -sdk iphoneos4.2 clean build -target Aggregation PROVISIONING_PROFILE=%PROVISIONING% | grep -P "(warning|error)"
like image 494
Santthosh Avatar asked Jul 27 '26 10:07

Santthosh


1 Answers

One potential solution is to mount a ramdisk and make sure the compilation happens from Ramdisk, I have tried this and does improve performance

http://www.kolios.dk/2011/03/29/using-a-ramdisk-when-compiling-a-project/

like image 52
Santthosh Avatar answered Jul 30 '26 03:07

Santthosh