Skip to content

Slow to compile on clean build - any tips to help reduce? #22

@mylogon341

Description

@mylogon341

On a clean build, this library takes about 35 seconds to compile on an M1 MacBook Pro.

In this screenshot we can see that the first red box is the geos compile, the 2nd box is all other SPM packages, and the 3rd box is the rest of my entire app.
Screenshot 2023-10-19 at 3 20 34 pm

This wouldn't usually be a problem (especially during development with incremental builds), but considering when I'm running CI builds, it could be outputting ~10 builds a day from a clean repo pull, it can add up to substantial waiting times.

I currently pull in GeoSwiftMapKit via SPM, but I'm guessing the real issue is further upstream.
Running Xcode 15.0.1

Does anyone have any tips or tricks to try and reduce this time at all?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions