Reputation: 81
I have a problem in my Xcode.
Before, my project took 30/45s to compile, but one morning, it began to take 2min / 2min30 to compile and especially during this step : "Running 2 of 3 custom shell scripts"
I don't understand why I don't change anything in the settings, I tried to reinstall Xcode, and on my project I use CocoaPods I tried pod install, pod update, but nothing changes...
If someone know the problem and could help me please, thank in advance..!
Upvotes: 1
Views: 1475
Reputation: 6177
It's likely you have code optimisation switched on, whilst this is a must for building your release version, for dev builds it isn't particularly important.
What code optimisation does is exactly what it says, it optimises your code to make the end binary that is produced smaller. It does things such as rename variables/methods to single characters etc... Like I said you obviously want this when submitting to the app store but you might not care if the app is larger whilst developing it.
You can turn off code optimisation for development builds by going to Project Settings > Build Settings
, searching 'optim
', under Swift Compiler - Code Generation
set Optimization Level
to None [-Onone]
for Debug builds.
This should significantly improve your build times.
Upvotes: 1