build.json not working with 5.0.0
See original GitHub issueI have a cordova app (built using corber.io) that I compile using the command line with this command:
corber build --platform ios --environment cordova --release --build-config "corber/cordova/build.json"
This loads signing identities and provisioning profiles from build.json, which looks like this:
{
"ios": {
"release": {
"codeSignIdentity": "XXXX",
"provisioningProfile": "XXXX",
"developmentTeam": "XXXX",
"packageType": "app-store",
"buildFlag": [
"-UseModernBuildSystem=0"
]
}
}
}
This works fine in cordova-ios@4.5.5 but after upgrading to cordova-ios@5.0.0 it does not seem to read the code signing identity or provisioning profile any more - I get the following warning:
xcode project is configured for manual signing, but no provisioning profile has been selected; project may build, but archive will fail.
and the build fails with the error:
Corber: xcodebuild: Command failed with exit code 65
WARNING: corber
No signing identity has been configured for your xcode project. If you have received an "ARCHIVE FAILED" message with error code 65, you will need to run "corber open ios" and set your development team (for automatic signing), or set your release provisioning profile (for manual signing).
This problem does seem to be specific to cordova-ios as it resolves after running corber platform remove ios
then corber platform add ios@4.5.5
. Do I need to update my build settings for the new release?
Many thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I had the same issue, but was able to fix by switching to use the UUID on the provisioningProfile property:
"provisioningProfile": "My ProPro Distro"
to"provisioningProfile": "123-456"
No. I tried:
But it still doesn’t seem to pick up the code signing certificate. I have managed to get it working by manually specifying build flags as below. Again, this is 5.0.x specific - has the method of parsing these variables from build.json changed?