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
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
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 iosand were getting an error:We then tried
EAS_NO_VCS=1 eas build -p iosand 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 apostinstallscript in ourpackage.jsonthat 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.Feeling a bit defeated, we came across another article (sorry couldn't find link) that said we needed to set
cli.requireCommittotruein oureas.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 iosHope this helps someone else on the internet!