Hey, I get this error in preBuild whenever am trying to build with eas build
Your project must have a `bundleIdentifier` set in the Expo config (app.json or app.config.js).
I am on the managed workflow, and have researched about this problem but none seems to be the solution.
The “bundleIdentifier” is sitting right there in my app.json
but it seems only the eas cli doesn’t see it somehow, because when I run expo build:ios
everything works fine.
From previous similar situations, they had duplicates of the ios
object in their app.json
, but I have cross-checked mine and it isn’t there.
But I do have a file that has almost everything my app.json has but it is not named app.json rather it is named the-way-app.json-was.json
This is my app.json without the credentials:
{
"expo": {
"name": "LionTaxi",
"slug": "LionTaxi",
"version": "1.1.2",
"orientation": "portrait",
"icon": "./assets/logo/liontaxi.png",
"splash": {
"image": "./assets/taxiSplash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"notification": {
"icon": "./assets/liontaxi.png",
"iosDisplayInForeground": true
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.emmalion.liontaxi",
"buildNumber": "1.1.2",
"config": {
"googleMapsApiKey": ""
}
},
"web": {
"favicon": "./assets/liontaxi.png"
},
"plugins": ["sentry-expo"],
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "magonner-llc",
"project": "liontaxi",
"authToken": ""
}
}
]
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/liontaxi.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.emmalion.liontaxi",
"versionCode": 3,
"googleServicesFile": "./google-services.json",
"config": {
"googleMaps": { "apiKey": "" }
},
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"CAMERA"
]
}
}
}
Please help