Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

MapboxMobileEvents takes a long time to link #197

Open
arbitur opened this issue Mar 4, 2020 · 7 comments
Open

MapboxMobileEvents takes a long time to link #197

arbitur opened this issue Mar 4, 2020 · 7 comments
Labels

Comments

@arbitur
Copy link

arbitur commented Mar 4, 2020

My setup

Machine: MacBook Pro 13", Mid 2014, 16GB RAM, i5 CPU
macOS version: 10.15.3
Mapbox version: 5.7.0, installed with cocoapods
XCode version: 11.3.1, using New build system
Cocoapods version: 1.9.0

Mapbox takes a tremendous amount of time during the "Embed Pods Frameworks" build process. On my machine (MacBook Pro 13", Mid 2014) it takes about 7 minutes to compile and it stays on mapbox related frameworks solely for ~6 minutes.

It didn't use to take this long like a year or so ago. I would guess this problem might have several causes, cocoapods version update, xcode version update, os update etc but I would like your input on this.

Do you have any tips on how to speed up this process? Thanks.

@1ec5 1ec5 transferred this issue from mapbox/mapbox-gl-native Mar 6, 2020
@1ec5
Copy link
Contributor

1ec5 commented Mar 6, 2020

The only thing I can think of is that, beginning with version v5.6.0, the map SDK dynamically links MapboxMobileEvents when installed using CocoaPods or Carthage, and MapboxMobileEvents is built from source. Previously, it was statically linked into the map SDK, which is distributed as a binary. One workaround would be to install the SDK manually without a dependency manager.

/cc @rclee @julianrex

@1ec5 1ec5 added the build label Mar 6, 2020
@arbitur arbitur closed this as completed Mar 7, 2020
@arbitur
Copy link
Author

arbitur commented Mar 7, 2020

The fault wasnt with MapBox 👍

@julianrex
Copy link
Contributor

Thanks for letting us know @arbitur!

@1ec5
Copy link
Contributor

1ec5 commented Mar 16, 2020

We’ve been encountering long MapboxMobileEvents link times on CircleCI that we suspect might be related to this issue. We aren’t sure if it always happens on CI, but it at least happens with the ios-release-tag builds that normally only run when releasing (the worst possible time for linking to stall).

@julianrex found that reducing the number of concurrent jobs in #221 seemed to reduce the link time, but we’d need to have the ios-release-tag workflow run to be sure. (#199 did temporarily enable the ios-release-tag workflow unconditionally, but I rewrote that out of history because we don’t want fake releases lying around.)

@1ec5 1ec5 reopened this Mar 16, 2020
@1ec5 1ec5 changed the title Cocoapods very long build time MapboxMobileEvents takes a long time to link Mar 16, 2020
@1ec5
Copy link
Contributor

1ec5 commented Mar 17, 2020

This nightly build also timed out due to long link times.

@1ec5
Copy link
Contributor

1ec5 commented Mar 18, 2020

This release build from tagging v5.8.0-beta.1 got killed after over 20 minutes linking. That was with the change in #221.

@misterkerry misterkerry self-assigned this Apr 3, 2020
@knov
Copy link
Contributor

knov commented Apr 17, 2020

May also resolve #71

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants