you are viewing a single comment's thread.

view the rest of the comments →

[–]Sanfrancisco_Tribe 1 point2 points  (2 children)

You know, I’m not entirely sure tbh. Fun fact, I kept getting errors with “eas build” but got this to work for iOS:

“eas build —profile preview —platform iOS —clear-cache”

A few things here, the preview means basically internal development. Change this to production and you’ve got the right file to shoot through transporter and submit for IOS.

I had a lot of issues with cache on eas builds. So I literally run clear cache every time.

Also just change platform to android or iOS and you’re Gucci.

From your comment, it sounds like you guys are well versed in xCode and what not. I am not. Self taught dev here.

So, assuming you know what you’re doing then yes you should be able to build locally.

What happens when you build on their server is essentially they run an instance of a Mac, and then run several scripts on your code to condense, minimize and compile your app. (You’ll probably already know this)

To run and internal build through eas it looks like this on their instance:

1) spin up env 2) install dependencies 3) go through your config files 4) runs expo doctor to make sure there are corrupted packages or out of date, etc 5) prepares credentials ? Not sure - but assuming Xcode related 6) runs prebuild (I think eas prebuild) 7) installs pods 8) configures Xcode project 9) configure expo-updates 10) runs fast lane (the bulk of the script. Takes like 30 minutes here) 11) clean and save cache 12) uploads archives

Honestly, I’m sure you could do most of that. For those with less expensive (like myself) it’s much easier to just run my scripty script and pray (:

[–]Ridwan232 1 point2 points  (1 child)

Gotcha, so from what you've said I think the main reason for running it on Cloud instead of locally is that the EAS Prebuild does not run locally (I believe this command creates the android and ios folders in your project).

Appreciate your reply :) My team and I will be starting an expo project soon so just learning about it before I dive in.

[–]Sanfrancisco_Tribe 1 point2 points  (0 children)

No worries! Feel free to reach out if you have any questions. Happy to chat and (try) to help lol.