I just upgraded to Xcode 6.3, and am attempting to reduce the compile time to something manageable. I have ~120 swift files/classes in my project and it's taking 2-3 minutes to compile. My project also has two test targets: UnitTests
and AutomatedTests
.
Here's a snapshot of what's going on when I build:
Under each of those "Compile Swift source files" it compiled every single Swift file. I watched it as it happened.
Why would it be compiling everything twice, and how do I stop it?
- Edit -
@matt points out that it's building once for each architecture. I'm assuming this isn't necessary for development (running in simulator). Any suggestions on how to only build appropriate architectures for the target device?