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.

Error ITMS-90287 when trying to deploy a MAS app built with electron-builder

See original GitHub issue

from https://github.com/electron-userland/electron-builder/issues/1023

  • Version: Electron Builder 10.8.1

I’m trying to publish a new version of my app on the Mac App Store but I’m having difficulties with Application Loader. When Apple analyses the pkg file created by Electron-Builder, I receive 2 errors:

ERROR ITMS-90287: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.developer.team-identifier' in 'com.xyz.xxxyyyzzz.pkg/Payload/xxxyyyzzz.app/Contents/MacOS/xxxyyyzzz'."
ERROR ITMS-90287: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.application-identifier' in 'com.xyz.xxxyyyzzz.pkg/Payload/xxxyyyzzz.app/Contents/MacOS/xxxyyyzzz'."

Any reason why? I’ve a valid and active profisionning profile for the distribution. And I have a build/entitlements.mas.plist file with

<key>com.apple.security.application-groups</key>
<string>123ABC.com.xyz.xxxyyyzzz</string>

When running build -m I don’t have any signing warnings/errors. It takes the right certificate. So I wonder what’s missing.

The value of application-groups is the same as the one in my provisioning profile under com.apple.application-identifier, and com.apple.developer.team-identifier contains the right 123ABC value. And when I inspect the plist file in the .app package created by electron-builder, I’m seeing the team id under ElectronTeamID, and the application id under CFBundleIdentifier.

Any help is welcome. Thanks.

cc @bryan-jowers

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
nunziotoccicommented, Dec 29, 2016

@sethlu, I fixed it, I had to put my own entitlements file in the build directory in addition to having the provisioning profile in the current directory.

2reactions
tleunencommented, Dec 19, 2016

Thank you @sethlu. It seems that was the issue. I didn’t have the provisioning profile in my project. I’m using electron-builder and it wasn’t clear I had to add the profile in the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error ITMS-90287 when trying to deploy a MAS app built with ...
When Apple analyses the pkg file created by Electron-Builder, I receive 2 errors: ERROR ITMS-90287: "Invalid Code Signing Entitlements. The ...
Read more >
Testing MAS build locally? | Apple Developer Forums
I'm trying to create a package for the Mac App Store using Electron 6.1.9 and Electron builder 21.2.0. I sign the package with...
Read more >
Publish - electron-builder
The publish key contains a set of options instructing electron-builder on how it should publish artifacts and build update info files for auto...
Read more >
electron - How to test MAS package locally? - Stack Overflow
UPDATE: Using Apple's tool, I found the following error: ERROR ITMS-90277: "Invalid Bundle Identifier. The application bundle contains a tool or ...
Read more >
How to use the electron-builder.build function in ... - Snyk
To help you get started, we've selected a few electron-builder.build examples ... let result; try { result = yield server.result; } catch (error)...
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