question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build.json not working with 5.0.0

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
davidachincommented, Jun 21, 2019

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"

0reactions
oslrcommented, Jun 6, 2019

No. I tried:

cd corber/cordova
cordova build ios --release --buildConfig=./build.json

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?

{
  "ios": {
    "release": {
      "codeSignIdentity": "XXXX",
      "provisioningProfile": "XXXX",
      "developmentTeam": "XXXX",
      "packageType": "app-store",
      "buildFlag": [
        "DEVELOPMENT_TEAM=XXXX",
        "CODE_SIGN_IDENTITY=XXXX",
        "PROVISIONING_PROFILE_SPECIFIER=XXXX",
        "CODE_SIGN_ENTITLEMENTS=XXXX/Entitlements-Release.plist"
      ]
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova signing android application : not working with build ...
x and i would generate a signing apk. I start to use build.json at the root of the cordova project with certificat credentials...
Read more >
NETSDK1141: Unable to resolve the .NET SDK version as ...
Install the SDK version requested in global.json. · Specify a different SDK version in global.json. · Check for typos or other problems in...
Read more >
JsonBuilder (Groovy 5.0.0-SNAPSHOT)
A builder for creating JSON payloads. This builder supports the usual builder syntax made of nested method calls and closures, but also some...
Read more >
package.json - npm Docs
The difference is that build failures do not cause installation to fail. Running npm install --omit=optional will prevent these dependencies from being ...
Read more >
Cannot find part of path StaticWebAssets.build.json during build
WinFormsApp\obj\Debug\net6.0-windows\StaticWebAssets.build.json'. at System.IO.__Error. ... https://github.com/dotnet/aspnetcore/issues/35561.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found