Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow bundle copy build phase when archiving iOS Widget Extension #3490

Open
Mordil opened this issue Dec 16, 2024 · 2 comments
Open

Slow bundle copy build phase when archiving iOS Widget Extension #3490

Mordil opened this issue Dec 16, 2024 · 2 comments
Labels
question Issues that have a question which should be addressed

Comments

@Mordil
Copy link
Contributor

Mordil commented Dec 16, 2024

Question

We have an iOS Widget extension target that is compiled with our main iOS app target, and during its build, we see the following logs

[08:35:38]: ▸ [AthensWidgetsExtension] Copy Apollo_ApolloAPI.bundle -> Apollo_ApolloAPI.bundle
[08:35:38]: ▸ [AthensWidgetsExtension] Copy Apollo_Apollo.bundle -> Apollo_Apollo.bundle
[08:50:37]: ▸ [AthensWidgetsExtension] Processing Info.plist
[08:50:37]: ▸ [AthensWidgetsExtension] Copy arm64-apple-ios.abi.json -> AthensWidgetsExtension.abi.json

Notice the Copy Apollo_Apollo.bundle step takes almost 15 minutes!

That same step for the main iOS target is effectively instantaneous.

Apollo is pulled in to both target via our shared umbrella Swift Package that has Apollo as a dependency.

I'm at a loss to determine what could be causing this - is this something others have encountered?

This is accounting for 50% of our build times

@Mordil Mordil added the question Issues that have a question which should be addressed label Dec 16, 2024
@calvincestari
Copy link
Member

Hi @Mordil - it's an odd one for sure, I don't believe I've seen any other reports of this kind of behaviour unfortunately.

Is it possibly an Xcode thing, i.e.: Do you notice this across different versions of Xcode too?

@Mordil
Copy link
Contributor Author

Mordil commented Dec 17, 2024

The logs I posted were with Xcode 15.2.

I ran builds with Xcode 15.4 & 16.2:

  • 15.4 => took ~ 14 minutes
  • 16.2 => took ~ 12 minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants