6
awol
9y

I can't take this Swift compile time anymore. It's up to 40 minutes now and all we can say is "optimize the code" and "get faster computers"

Comments
  • 0
    Are you using CocoaPods?
  • 0
  • 0
    I'm guessing you have quite a few dependencies as well. The problem with CocoaPods + Swift is that you have to use the '!use_frameworks' directive, which means all your dependencies are compiled into a Pods framework. This process is not optimised by Xcode (I'm guessing it assumes a framework is third-party software that should be messed with), leading to both longer compilations and slower app launches (the whole framework needs to be loaded into memory at once).
  • 0
    My advice to you is:

    1- have fewer dependencies, if possible
    2- use git modules if #1 above fails

    I know git modules are a pain in a lot of parts of the body. However, I honestly think the cost of using dependencies must be on the developer, not on the user.
  • 0
    * shouldn't
  • 1
    @BellAppLab I'll talk to my buds in charge of managing the workspace. I believe we're already ignoring the frameworks. Modulizing might help but with short deadlines the major refactor required would get us fired probably. And you're right we've got a lot of dependencies.
Add Comment