I have a managed Expo project that uses multiple app.json files for different build variants e.g.:
expo ios --config=customer1/app.json
expo ios --config=customer2/app.json
I’m starting to eject now to add new features, and the eject command is successful:
expo eject --config=customer1/app.json
However the project fails to fully load in Android Studio, failing with error
‘./node_modules/expokit/detach-scripts/run-exp.sh’’ finished with non-zero exit value 1
This appears to be because run-exp.sh does not account for the non-standard app.json file location.
You can fix it by adding the --config= parameter in node_modules/expokit/detach-scripts/run-exp.sh:
PATH="$PATH:$value" expo --config=customer1/app.json "$@"
I realise using multiple app.json files is fairly unusual, but shouldn’t run-exp.sh take account of the config used during ‘expo eject’? Or should ‘expo eject --config=’ fail if separate app.json files is going to result in a build error?