eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

EAS build local is very slowly

Open erichou668 opened this issue 4 years ago • 16 comments

Build/Submit details page URL

No response

Summary

I use the command “npx eas-cli build --profile preview --platform ios --local --non-interactive” to build iOS ipa, but it is very slowly, it cost 30 minutes. How to save the build time?

Managed or bare?

Managed

Environment

expo-env-info 1.0.2 environment info: System: OS: macOS 11.6.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 14.15.1 - /usr/local/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 6.14.8 - /usr/local/bin/npm Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: API Levels: 28, 30, 32 Build Tools: 29.0.2, 30.0.3, 32.0.0, 32.1.0 Android NDK: 24.0.8215888 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.2/13C90 - /usr/bin/xcodebuild npmPackages: babel-preset-expo: 8.3.0 => 8.3.0 expo: ^42.0.0 => 42.0.5 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: eas-cli: 0.50.0 expo-cli: 5.3.0 Expo Workflow: managed

Error output

build is slowly

Reproducible demo or steps to reproduce from a blank project

execute the command "npx eas-cli build --profile preview --platform ios --local --non-interactive"

erichou668 avatar Apr 13 '22 08:04 erichou668

most cloud builds take about 10-15 minutes if you are using mostly expo packages. If takes longer for you then there might be 2 reasons:

  • you are using some heavy libraries that take long time to compile
  • your machine or network access is a bottleneck (how long cloud builds take?)

I see you are using SDK 42, I don't remember for sure, but I think most of the expo packages on that sdk were built from sources, where now a lot of those are provided as prebuild binaries, so upgrading to the latest SDK might help

wkozyra95 avatar Apr 13 '22 13:04 wkozyra95

Hey, this issue was related to local builds, not cloud server builds. I am also seeing this behavior, my expo start and expo run-<PLATFORM> commands build and install the app super fast, yet eas cli build --local takes 10 times as much time.

bombillazo avatar Oct 18 '22 03:10 bombillazo

@bombillazo expo start does not build the application just js. expo run:* builds in Debug mode which is a bit faster, plus it reusing stuff that was built previously, if you delete android/ios dir and clean xcode cache it would take just as long as local builds.

wkozyra95 avatar Oct 18 '22 08:10 wkozyra95

I observed that today, it took me 1 hour 53 mins. Screenshot 2022-11-10 at 1 30 11 AM

It asked me to go for enterprise edition or so, is there anyway to avoid this much latency in the build. To revert back to non expo environment is quite tedious too. Any suggestions?

shashankGS10 avatar Nov 09 '22 20:11 shashankGS10

@shashankGS10 There is a limited amount of resources for a free tier, so at peek times of the day there is a queue, it's mostly affects iOS. You can check how long a queue is during the day here https://expo.dev/eas-build-status

You can either:

  • Subscribe to a production plan https://expo.dev/pricing
  • Build on your own machine with eas build --local

wkozyra95 avatar Nov 09 '22 20:11 wkozyra95

hello , i have the same issue with android

running a local build take 15 min with a ryzen 3950x 16c/32t oc at 4.5ghz, 64gb ram , nvme ssd and a 1g fiber optic link

anyway i can speed up the build ?

MkrierPharmanity avatar Feb 09 '23 12:02 MkrierPharmanity

@MkrierPharmanity , I found the method to speed up build performance: https://reactnative.dev/docs/build-speed

we might try this afterward we could check it's better or not

monochrome-yeh avatar Oct 10 '23 07:10 monochrome-yeh

@MkrierPharmanity the command in that url is use react... not expo?

ahmed-hounati avatar Jun 13 '24 14:06 ahmed-hounati

Let me try. Thanks though it looks I'll get my solution here. ? 🫡

On Thu, 13 Jun, 2024, 20:08 ahmed hounati, @.***> wrote:

@MkrierPharmanity https://github.com/MkrierPharmanity the command in that url is use react... not expo?

— Reply to this email directly, view it on GitHub https://github.com/expo/eas-cli/issues/1062#issuecomment-2165867117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3ORNDXST6HHZB4XASTCTLZHGVEVAVCNFSM6AAAAABJIRSNVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRVHA3DOMJRG4 . You are receiving this because you were mentioned.Message ID: @.***>

shashankGS10 avatar Jun 13 '24 17:06 shashankGS10

hello, any updates on this? ios local builds take like 30 minutes, while android local builds take less than 5. anything we can do to speed up build times?

janroures avatar Aug 20 '24 11:08 janroures

Why is this issue closed? It hasn't been fixed and no one has provided any decent workarounds. This needs to be fixed.

dreamawakening avatar Oct 23 '24 03:10 dreamawakening

@demeralde try clearing Xcode derived data. It helped me speed up my iOS local builds considerably

janroures avatar Oct 23 '24 09:10 janroures

EAS android build takes almost 50 minutes on github actions, is there anyway to speed it up ?

Screenshot 2024-12-01 at 1 02 28 AM

a-eid avatar Nov 30 '24 23:11 a-eid

iam still having same issue on android with local build why it takes this long time? I have MacBook Pro m4 pro so I excepted to be lower than that

alisabry22 avatar Sep 17 '25 20:09 alisabry22

I have the same issue on android local build as well. Takes about an hour and then fails :( . So frustrating

oniseun avatar Feb 04 '26 00:02 oniseun

Having the same issue. on github action it runs 1h13min. then errors with no space left. ios is running fine in like 20 minutes.

Blackfaded avatar Mar 06 '26 10:03 Blackfaded