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.

Mas pkg invalid, and workaround is ineffective

See original GitHub issue
  • Version: 6.0.10
  • Target: MAS

I am trying to build for mas using the vue-cli-plugin-electron-builder module, which currently only supports Electron 6.0.

I am able to build and successfully sign a mas pkg, but it has a number of verification issues when loaded into Transporter. Here is a log:

ERROR ITMS-90277: "Invalid Bundle Identifier. The application bundle contains a tool or framework Electron Helper (GPU) [com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (GPU).app] using the bundle identifier 'com.beadz-drums.beadz.helper.(GPU)', which is not a valid bundle identifier."

ERROR ITMS-90277: "Invalid Bundle Identifier. The application bundle contains a tool or framework Electron Helper (Plugin) [com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Plugin).app] using the bundle identifier 'com.beadz-drums.beadz.helper.(Plugin)', which is not a valid bundle identifier."

ERROR ITMS-90277: "Invalid Bundle Identifier. The application bundle contains a tool or framework Electron Helper (Renderer) [com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Renderer).app] using the bundle identifier 'com.beadz-drums.beadz.helper.(Renderer)', which is not a valid bundle identifier."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (GPU).app/Contents/MacOS/Beadz Helper (GPU)' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Plugin).app/Contents/MacOS/Beadz Helper (Plugin)' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Renderer).app/Contents/MacOS/Beadz Helper (Renderer)' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper.app/Contents/MacOS/Beadz Helper' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libEGL.dylib' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libEGL.dylib' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libGLESv2.dylib' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Library/LoginItems/Beadz Login Helper.app/Contents/MacOS/Beadz Login Helper' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-90284: "Invalid Code Signing. The executable 'com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/MacOS/Beadz' must be signed with the certificate that is contained in the provisioning profile."

ERROR ITMS-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.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (GPU).app/Contents/MacOS/Beadz Helper (GPU)", "com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Plugin).app/Contents/MacOS/Beadz Helper (Plugin)", "com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper (Renderer).app/Contents/MacOS/Beadz Helper (Renderer)", "com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Frameworks/Beadz Helper.app/Contents/MacOS/Beadz Helper", "com.beadz-drums.beadz.pkg/Payload/Beadz.app/Contents/Library/LoginItems/Beadz Login Helper.app/Contents/MacOS/Beadz Login Helper" )] Refer to App Sandbox page at https://developer.apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app."

I have addressed these issues by following the instruction at https://david.dev/electron-cannot-build-mas-on-os-x-mojave/ (which references official/accepted workarounds).

Other info:

App id: com.beadz-drums.beadz Builder config (from vue.config.js):

        mac: {
          category: 'public.app-category.music',
          entitlements: 'build/entitlements.mac.plist',
          icon: 'build/icon.icns',
          target: ['mas']
        },
        mas: {
          type: 'distribution',
          category: 'public.app-category.music',
          entitlements: 'build/entitlements.mas.plist',
          icon: 'build/icon.icns',
          target: ['pkg']
        }

Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
kellerchchcommented, Jan 24, 2020

Thanks @Heydon I did message some 15 electron devs who seem experienced with this electron-builder package so thanks. I did see that https://github.com/electron-userland/electron-builder/releases/tag/v22.3.1 was released 4 days ago and we haven’t tried upgrading to try that. Will do. Thanks.

0reactions
marckohlbruggecommented, May 21, 2021

@sangeeth96 Where you able to find a workaround for this? I’m having similar issues trying to get a valid .pkg for MAS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hardened runtime causes app to crash on open. (Signed and ...
The MAS builds seems to generate an executable AND an installer (PKG). However, the latter uses default icons, text etc and I don't...
Read more >
How to Fix “application is damaged, can't be used to install ...
Have you run into the “application is damaged, and can't be used to install macOS” error message, and did you fix it by...
Read more >
How to fix 'The application "..." can't be opened' on Mac?
For example, right click the application and click "Show Package Contents" then look for a folder called "Versions".
Read more >
How to convert a macOS installer .pkg into an .app to run it?
But first I need to make it an app. I can't do it through the MAS because el Capitan is no longer available....
Read more >
Getting Code Signature Invalid when opening signed electron ...
I have the same exact problem. If I remove the <key>com. · Not yet... but I-m investigating the issue right now. As I...
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