I am trying to build a standalone iOS app using the eas build --platform ios
command and I am encountering the following error:
Prebuilding managed project
[04:57:52] π iOS Bundle Identifier Learn more: https://expo.fyi/bundle-identifier
[stderr] [04:57:52] Input is required, but Expo CLI is in non-interactive mode.
[stderr] Your project must have a `bundleIdentifier` set in the Expo config (app.json or app.config.js).
[stderr] See https://expo.fyi/bundle-identifier
node exited with non-zero code: 1
I can build the app successfully using the expo build ios
command.
app.json
{
"expo": {
"name": "App Name",
"description": "App description",
"slug": "app-slug",
"owner": "owner",
"privacy": "unlisted",
"platforms": [
"ios",
"android"
],
"orientation": "portrait",
"version": "0.4",
"userInterfaceStyle": "automatic",
"primaryColor": "#2b354c",
"backgroundColor": "#2b354c",
"icon": "./src/assets/images/app-icon.png",
"splash": {
"backgroundColor": "#2b354c",
"resizeMode": "cover",
"image": "./src/assets/images/splash.png",
"tabletImage": "./src/assets/images/splash.png",
"userInterfaceStyle": "light"
},
"notification": {
"icon": "./src/assets/images/notificationLogo.png",
"androidMode": "default",
"color": "#cc0f3d",
"iosDisplayInForeground": true
},
"assetBundlePatterns": [
"./src/assets/images/*",
"./src/assets/images/icons/*",
"./src/assets/images/laundry/*",
"./src/assets/images/tiles/*",
"./src/assets/fonts/*"
],
"updates": {
"enabled": true,
"checkAutomatically": "ON_LOAD",
"fallbackToCacheTimeout": 20000
},
"ios": {
"bundleIdentifier": "com.my.org",
"googleServicesFile": "./GoogleService-Info.plist",
"buildNumber": "0.4",
"icon": "./src/assets/images/app-icon.png",
"supportsTablet": true,
"isTabletOnly": false,
"usesIcloudStorage": false,
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "Allow ...",
"NSLocationAlwaysUsageDescription": "Allow ...",
"NSFaceIDUsageDescription": "Allow ...",
"LSApplicationQueriesSchemes": [
"ms-outlook",
"zoomus"
]
}
},
"androidStatusBar": {
"barStyle": "light-content",
"hidden": false,
"translucent": false
},
"androidNavigationBar": {
"backgroundColor": "#2b354c",
"barStyle": "light-content"
},
"android": {
"useNextNotificationsApi": true,
"package": "com.my.org",
"googleServicesFile": "./google-services.json",
"versionCode": 25,
"icon": "./src/assets/images/app-icon.png",
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"com.google.android.c2dm.permission.RECEIVE",
"ACCESS_NETWORK_STATE",
"ACCESS_WIFI_STATE",
"INTERNET"
],
"playStoreUrl": "https://play.google.com/store/apps/details?id=org.app&hl=en_GB",
"config": {
"googleMaps": {
"apiKey": "00000000"
}
}
},
"web": {
"config": {
"firebase": {
"apiKey": "key",
"authDomain": "xyz.firebaseapp.com",
"projectId": "xyz",
"storageBucket": "xyz.appspot.com",
"messagingSenderId": "000000",
"appId": "000000",
"measurementId": "G-000000"
}
}
},
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "org",
"project": "my-app",
"authToken": "0000000"
}
}
]
},
"extra": {
"token": "00001"
}
}
}
Any help will be greatly appreciated