I am currently trying to create a developmental build using the EAS CLI using local credentials, and in my credentials.json
file I have two targets for iOS. Every time I run eas build --profile development --platform ios
I encounter this issue:
✔ Linked to project @MY_PROECT/APP (APP_URL)
✔ Using local iOS credentials (credentials.json)
Error: Credentials are not defined in credentials.json
I also tried running the command with my credentials.json
only containing ios.provisioningProfilePath
and ios.distributionCertificate
(one target) and the command successfully runs and queues my build.
I have followed the documentation about setting multi-target projects in the credentials.json
file but I still encounter this issue.
For more context, I am trying to pull in the OneSignal library and I am following the steps listed in this GitHub discussion so that EAS can properly build my project.
Project Info:
- Workflow: Managed
- EAS CLI:
eas-cli/0.47.0
- Expo SDK: 44
credentials.json
:
{
"ios": {
"MY_PROJECT": {
"provisioningProfilePath": "ios/certs/DEFAULT_ADHOC_PROVISION.mobileprovision",
"distributionCertificate": {
"path": "ios/certs/MY_CERT.p12",
"password": "CERT_PASS"
}
},
"OneSignalNotificationServiceExtension": {
"provisioningProfilePath": "ios/certs/ONESIGNAL_ADHOC_PROVISION.mobileprovision",
"distributionCertificate": {
"path": "ios/certs/MY_CERT.p12",
"password": "CERT_PASS"
}
}
}
}
eas.json
:
{
"build": {
...,
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"credentialsSource": "local"
}
},
...
},
"cli": {
"version": ">= 0.40.0"
}
}