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.

Signing OSX App Fails: Electron Framework: bundle format is ambiguous (could be app or framework)

See original GitHub issue

I’ve been looking for solutions and am only able to find vague answers without solutions in various electron related issue trackers.

Error: Command failed: codesign --sign Mac Developer: FIRST LAST (UNIQUE_ID) -fv /Users/framerate/code/dist/Project-darwin-x64/Project.app/Contents/Resources/app/dist/Project-darwin-x64/Project.app/Contents/Frameworks/Electron Framework.framework/Electron Framework /Users/framerate/code/dist/Project-darwin-x64/Project.app/Contents/Resources/app/dist/Project-darwin-x64/Project.app/Contents/Frameworks/Electron Framework.framework/Electron Framework: bundle format is ambiguous (could be app or framework)

electron-builder: 3.17.1 electron-prebuilt: 0.37.8 node: 6.0.0 npm: 3.8.8 OSX: 10.11.5 Beta (15F31a)

Any suggestion would be appreciated, since the signing is all inside electron-builder.

For the record:

codesign -s 'Mac Developer: FIRST LAST (UNIQUE_ID)' -f dist/Project-darwin-x64/Project.app --deep

Seems to work, but since I want to use electron-builder to auto package the update files and DMG, I’m not sure how to manually inject the codesign.

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
FrenchBullycommented, Nov 1, 2016

I too ran into this issue until I realized I had the wrong version for electron declared. Hope that helps. electron-packager . “App Name” --platform=darwin --arch=x64 --version=YOUR_ELECTRON_VERSION --app-bundle-id=“com.AppName” --app-version=“1.0.0” --build-version=“1.0.100”

0reactions
cinder92commented, Jun 15, 2017

@FrenchBully im using 1.6.6 version of electron and this is not working 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

osx 10.9.5 code signing V2 - signing a framework with: bundle ...
Usually 'A'. Signing 'Versions/Current' might be a workaround, if you cannot fix the structure. Apple, please fix your codesigner, to say ...
Read more >
bundle format is ambiguous (could be app or framework)
OS X codesign failed: bundle format is ambiguous (could be app or framework) ... This error can be caused by many things but...
Read more >
codesign says my bundle format is ambiguous - Xojo Forum
codesign thinks your bundle looks a bit like an app and a bit like a framework. Perhaps you have both Contents and Versions...
Read more >
Signing an app | Apple Developer Forums
It suggests that you have set up your workflow incorrectly. Now I am facing some different error .app: bundle format is ambiguous (could...
Read more >
Tutorial on publishing Flex/Air app for Mac App Store or just ...
DHL83​'s correspondence with Apple and reference to the Electron thread on ... SimsUshare_v2.app: bundle format is ambiguous (could be app or framework).
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