apache / apache/cordova-electron

Transporter error - example of build.json

Open
#260 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
135
Forks
60
Avg merge
1d 6h
Merged PRs (30d)
5

Description

I am using cordova-electron to build a macOS app.
But I have problems when I try to use transporter :

Asset validation failed (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.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/MacOS/Mon Glucko'. (identifiant : cbebe527-de89-4930-83c7-07359a9e90ec)

Asset validation failed (90237)
The product archive package's signature is invalid. Ensure that it is signed with your "3rd Party Mac Developer Installer" certificate. (identifiant : ed33915d-c925-44d2-b493-d1e75601c4db)

Asset validation failed (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.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/MacOS/Mon Glucko'. (identifiant : 9a3e44ab-13e5-4358-b6d4-7f34d41fada4)

Asset validation failed (90296)
App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler", "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Mon Glucko Helper (GPU).app/Contents/MacOS/Mon Glucko Helper (GPU)", "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Mon Glucko Helper (Plugin).app/Contents/MacOS/Mon Glucko Helper (Plugin)", "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Mon Glucko Helper (Renderer).app/Contents/MacOS/Mon Glucko Helper (Renderer)", "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Mon Glucko Helper.app/Contents/MacOS/Mon Glucko Helper", "com.monglucko.app.pkg/Payload/Mon Glucko.app/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt" )] Refer to App Sandbox page at https://developer.apple.com/documentation/security/app_sandbox for more information on sandboxing your app. (identifiant : 8dba20e4-3245-4571-a4fe-b86e93a50f8d)

Could you please help me with build.json example files.
It is mine :

"electron": {
"mac": {
"icon": "www/res/icon/electron/icon.icns",
"package": [
"pkg",
"zip"
],
"signing": {
"release": {
"entitlements": "www/res/electron/entitlements.plist",
"identity": "Bxxxxx (xxxxx)"
}
}
}

If I add mobileprovision, I obtain that :

Invalid Provisioning Profile Signature. The provisioning profile included in the bundle com.monglucko.app [com.monglucko.app.pkg/Payload/Mon Glucko.app] cannot be used to submit apps to the Mac App Store until it has a valid signature from Apple. For more information, visit the macOS Developer Portal. (identifiant : 9906bc0b-df07-42bb-985e-fdf942e99ddd)

Many thanks

Contributor guide

Open the contributing guide

Research direction

Start with the posted build.json and entitlements.plist, then reproduce the macOS package submission using the listed pkg and zip outputs. Done means the resulting archive passes Transporter without the entitlement, signature, or sandbox errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, nodejs
Domain
build-system, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.