Electron-builder: Package MAS error

Created on 20 Mar 2018  路  16Comments  路  Source: electron-userland/electron-builder

  • electron-builder: 20.6.2
  • electron: 2.0.0-beta.4
  • target: mas

Hello
When I download the package to the Itunes I get an error:
ERROR ITMS-90511: "CFBundleIdentifier Collision. The Info.plist CFBundleIdentifier value 'com.github.electron.loginhelper' of 'com.my.app/Contents/Library/LoginItems/Electron Login Helper.app' is already in use by another application."

bug

Most helpful comment

Will be fixed, sorry for delay.

All 16 comments

I just did my first submission to the App Store through Application Loader and I got that same error back from iTunes connect. Not sure if I'm building wrong or something is borked so just chiming in here too.

  • electron-builder: 20.8.2
  • electron: 2.0.0-beta.7
  • target: mas

CFBundleIdentifier Collision - The Info.plist CFBundleIdentifier value 'com.github.electron.loginhelper' of 'my.app/Contents/Library/LoginItems/Electron Login Helper.app' is already in use by another application.

@mulyk did you find any resolution to this?

I am also suffering from this issue. Any solution / workaround?

@dbtek Go to the .app, right click and show package contents.

Then go to my.app/Contents/Library/LoginItems/ and just delete Electron Login Helper.app

That worked for me

@sferoze thanks for the reply. I can just do that however Application Loader only accepts .pkg. I don't know how to I modify .pkg.

@dbtek Ah yah, you have to output the .app file from electron-builder. I think it outputs that along with the .pkg.

So edit the .app file and then you will have to re-package the .app file. Quick google search will show you how to do that.

@dbtek, I modified the function createMacApp in builder script node_modules/electron-builder-lib/out/electron
Here are the necessary changes:
https://github.com/mulyk/test/commit/f92a55a2f33155c8842f2808d475e5d527f0d7b8
This only works for the Mas target, for the rest the Login Helper is not supplied and the script will give an error, you need to use the standard or add condition

Thanks @mulyk. I'll try. Sorry for the bother, appreciated.

@mulyk it worked! But this time app crashes at launch. Can't we build for mas without electron-builder?

It seems crash is unrelated to patch. It crashes without it too. (On 20.11.1)

@dbtek Yes, the package for mas doesn't run from the file, only from the store.
So it was with me, maybe there is an opportunity to run locally

@mulyk, sorry for the level of noobness. Apple rejected binary stating "App crashes on launch".
Is there anyway to repeat it locally with MAS build?

  • electron-builder: 20.13.3
  • electron: 2.0.0
  • target: mas

Still has this problem, for those of you looking for a solution. The patch created by @mulyk works like a charm:
https://github.com/mulyk/test/commit/f92a55a2f33155c8842f2808d475e5d527f0d7b8

Steps:

  • edit the file atom node_modules/electron-builder-lib/out/electron/electronMac.js
  • run the electron builder via npx electron-builder

@mulyk Why not prepare PR :(

Will be fixed, sorry for delay.

Hello 馃憢

"electron-builder": "20.28.4"
"target": "mas"

When I upload to AppStore Connect I get this error: Error: CFBundleIdentifier Collision - The Info.plist CFBundleIdentifier value 'org.phantomjs' of 'phantomjs' is already in use by another application.

Any new workarounds?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AidanNichol picture AidanNichol  路  3Comments

xingoxu picture xingoxu  路  3Comments

alexstrat picture alexstrat  路  3Comments

jhg picture jhg  路  3Comments

ccorcos picture ccorcos  路  3Comments