Hey, I got the same issue when trying to configure the same thing as he didn’t mentioned above. And I am getting this error mesasge Could not find target ‘XXXX’ in project.pbxproj. Please note that dev works for me, and the command i use to run is
“deploy:ios:dev”: “APP_ENV=development eas build --profile development --platform ios --auto-submit”,
“deploy:ios:prod”: “APP_ENV=production eas build --profile production --platform ios --auto-submit”,
Here’s my eas config
"cli": {
"version": ">= 0.45.0"
},
"build": {
"development": {
"releaseChannel": "development",
"env": {
"ENV": "public",
...
}
},
"production": {
"releaseChannel": "production",
"env": {
"ENV": "public",
...
}
}
},
"submit": {
"development": {},
"production": {}
}
}
App.config.js
const DevConfig = {
name: 'xxx Development',
slug: 'xxx-development',
version: '0.0.8',
ios: {
buildNumber: '8',
bundleIdentifier: 'com.xxx.development',
supportsTablet: true,
config: {
usesNonExemptEncryption: false
}
},
android: {
// TODO: update package for android once it's been fully setup
package: 'com.xxx',
versionCode: 8,
adaptiveIcon: {
foregroundImage: './assets/images/adaptive-icon.png',
backgroundColor: '#ffffff'
}
},
icon: './assets/images/icon.png',
scheme: 'myapp',
splash: {
image: './assets/images/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff'
}
};
const ProdConfig = {
name: 'xx',
slug: 'xx-xxx',
version: '0.0.3',
ios: {
buildNumber: '3',
bundleIdentifier: 'com.xxx.production',
supportsTablet: true,
config: {
usesNonExemptEncryption: false
}
},
android: {
// TODO: update package for android once it's been fully setup
package: 'com.xxx',
versionCode: 3,
adaptiveIcon: {
foregroundImage: './assets/images/adaptive-icon.png',
backgroundColor: '#ffffff'
}
},
icon: './assets/images/icon.png',
scheme: 'myapp',
splash: {
image: './assets/images/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff'
}
};
export default {
expo: {
...(process.env.APP_ENV === 'production' ? ProdConfig : DevConfig),
orientation: 'portrait',
userInterfaceStyle: 'automatic',
updates: {
fallbackToCacheTimeout: 0
},
assetBundlePatterns: ['**/*'],
web: {
favicon: './assets/images/favicon.png'
}
}
};
I was wondering how does the name inside expo name inside app.config.js tries to the provisioning profile’s name or the identifier?