1 2 3 Previous Next 127 Replies
      Latest reply on Jan 23, 2018 1:57 PM by mahboud
      aandrewc Level 1 Level 1 (0 points)

        Whenever I make a change to a file, like add a new property or create a new class, Xcode recompiles every single file on a build, and it takes quite some time. I've got this happening on the GM on two different computers (one running 10.12 one running 10.11).

         

        I've tried:

        • copying every file to a new Xcode project created in Xcode 8 GM
        • removing every "Other swift flag" flag
        • removing all third party libraries
        • comparing my project's build settings to a new project's build settings
        • remove all test targets leaving just the one target I need
        • removing all ObjC code
        • removing all ObjC related flags

         

        Really the kicker is that moving all my code to a new project shows that it's something in my code.

        Any ideas? My productivity is way down having to wait ~ 1.5 minutes for every build / auto complete / syntax highlighting to work. And yes, I've cleared derived data

         

         

        UPDATE:

        One more peice of information, I found this information https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160411/001693.html

         

        which tells us about a "-driver-show-incremental" flag, which will cause queued dependancies to be listed in the build log. Sure enough I see what I think is every single swift file I have listed in the output. Trying to figure out if there's a way to make sense of what the dependancies are...

         

        Output is something like:

         

        ...

        Queuing Form.swift because of dependencies discovered later

        Queuing SignInViewController.swift because of dependencies discovered later

        Queuing EditProfileViewController.swift because of dependencies discovered later

        Queuing ChangePasswordViewController.swift because of dependencies discovered later

        Queuing JoinViewController.swift because of dependencies discovered later

        ...

        1 2 3 Previous Next