DEV Community

Discussion on: Undocumented EAS flag in Expo SDK 43

Collapse
 
jackman3005 profile image
Jack Coy • Edited

Your post is the only one on the internet bringing EAS_PROJECT_ROOT to the surface, thanks a bunch for that.

We were drawn to your post because we tried eas build -p ios and were getting an error:

Error: git exited with non-zero code: 1
Enter fullscreen mode Exit fullscreen mode

We then tried EAS_NO_VCS=1 eas build -p ios and no longer had that error, but because we are in a mono-repo, our build failed during the expo build on the Install dependencies step. We had a postinstall script in our package.json that used a sibling directory to our app. This failed because the the sibling folder was not there, as described in your article.

We then tried EAS_NO_VCS=1 EAS_PROJECT_ROOT=.. eas build -p ios. This got us past the error in "Install Dependencies" but we now had a new error in our "Install Pods" step.

Installing pods
spawn pod ENOENT
Enter fullscreen mode Exit fullscreen mode

Feeling a bit defeated, we came across another article (sorry couldn't find link) that said we needed to set cli.requireCommit to true in our eas.json 🎉.

We tried this and were able to get through the full process after adding it and making a commit with it using just this command.

eas build -p ios

Hope this helps someone else on the internet!