When I run eas build --profile test and submit (after I builded and submitted production) I get the following error:
The provided entity includes an attribute with a value that has already been used on this account. - The app name you entered is already being used for another app in your account.
This is part of my app.config.js file.
export default {
name: process.env.APP_NAME ?? 'Prime Expolution',
slug: 'prime-expolution',
scheme: 'prime-expolution',
ios: {
supportsTablet: true,
bundleIdentifier: process.env.APP_PACKAGE ?? 'com.prime.expolution',
backgroundColor: '#ffffff',
jsEngine: 'hermes',
},
android: {
adaptiveIcon: {
foregroundImage: './src/assets/images/adaptive-icon.png',
backgroundColor: '#ffffff',
},
package: process.env.APP_PACKAGE ?? 'com.prime.expolution',
jsEngine: 'hermes',
},
}
And this is part my eas.json
{
"build": {
"test": {
"channel": "test",
"ios": {
"resourceClass": "m-medium",
"autoIncrement": true
},
"env": {
"APP_ENV": "test",
"APP_NAME": "Prime Expolution - Test",
"APP_PACKAGE": "com.prime.expolution.test",
"API_URL": "www.api.com/test"
}
},
"production": {
"channel": "production",
"ios": {
"resourceClass": "m-medium",
"autoIncrement": true
},
"env": {
"APP_ENV": "production",
"APP_NAME": "Prime Expolution",
"APP_PACKAGE": "com.prime.expolution",
"API_URL": "www.api.com/production"
}
}
"submit": {
"test": {
"ios": {
"bundleIdentifier": "com.prime.expolution.test"
}
},
"production": {
"ios": {
"bundleIdentifier": "com.prime.expolution"
}
}
},
}
After a bit of debugging I found out that process.env.APP_NAME doesn’t get picked up so every profile is build with Prime Expolution. I know this because when I do:
name: process.env.APP_NAME,
the app gets uploaded to the appstore with the slug as name.
Also → the APP_PACKAGE does work because the app got build with com.prime.expolution.test. Is there anything i’m doing wrong? As far as I know i’m doing everything correct and according the documentation. I’m using expo version 49.0.0.
Tnx!