Error ITMS-90287 when trying to deploy a MAS app built with electron-builder
See original GitHub issuefrom 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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
@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.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.