Slow bundle copy build phase from dependency

We have a dependency, Apollo iOS, that is managed by SwiftPM in an internal module Swift Package.

That internal Swift Package is then linked and included in our iOS target.

The iOS target has an associated WidgetKit extension app.

When archiving the app, we're seeing extremely long "Copy Apollo_Apollo.bundle" build steps, on the magnitude of 15 minutes. This is only happening when copying the bundle for the Widget extension app.

Builds are done with Xcode 15.2, but we've tried on 15.4 and 16.2, seeing a few minutes shaved off.

How can we begin to debug this issue?

Slow bundle copy build phase from dependency
 
 
Q