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.

The build executable fails because it tries to load wrong "Helper.app" link

See original GitHub issue
  • 10.15.1:
  • OSX dmg:

When I mention productName="MYAPP" in my package.json file, the resulting executable <MYAPP>.app/Contents/MacOS/<MYAPP> fails to execute giving the stack trace

There was an error parsing the Info.plist for the bundle at URL <0x7f8068400a00>: NSCocoaErrorDomain - 3840         
[18644:1231/172226:FATAL:atom_main_delegate_mac.mm(50)] Unable to find helper app                                                                               
0   Electron Framework                  0x0000000104e78a23 _ZN4base8internal14NarrowingRangeIilE3minEv + 434723                                                 
1   Electron Framework                  0x0000000104e902d7 _ZN4base8internal14NarrowingRangeIilE3minEv + 531159                                                 
2   Electron Framework                  0x0000000104c73700 _ZN4atom16AtomMainDelegate24OverrideChildProcessPathEv + 288                                         
3   Electron Framework                  0x0000000104e006db _ZN9brightray12MainDelegate20BasicStartupCompleteEPi + 107                                           
4   Electron Framework                  0x0000000104c72f7d _ZN4atom16AtomMainDelegate20BasicStartupCompleteEPi + 237                                            
5   Electron Framework                  0x00000001055346d0 _ZN4base8internal14NarrowingRangeIilE3minEv + 7495376                                                
6   Electron Framework                  0x00000001055340ce _ZN4base8internal14NarrowingRangeIilE3minEv + 7493838                                                
7   Electron Framework                  0x0000000104c70907 AtomMain + 71        
8   MYAPP                         0x0000000104c68f26 main + 38                  
9   libdyld.dylib                       0x00007fff93b41255 start + 1            
10  ???                                 0x0000000000000001 0x0 + 1 

When I inspected the code of electron-builder and checked some of the generated files, I guessed what the problem was. I think the executable is trying to execute Electron Helper.app, but when I look into Electron.app/Contents/Frameworks, I see

MYAPP Helper EH.app
MYAPP Helper NP.app
MYAPP Helper.app

The same problem persists if I don’t explicitly mention productName in the package.json file. (I think it’s getting the MYAPP from the name property in that case).

To verify that this is the issue, I rebuilt with productName="Electron" so that it will name the Helper files to what the other part of code expects. And it started working.

I believe that in past I was able to build for OSX successfully at least once (may be a 10.14.* version); but I can’t be sure. So I’m puzzled why this problem has started showing now.

The workaround of naming productName="Electron" is not really acceptable. Do you have any suggestions?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jan 17, 2017

@jay3sh Thanks for sample project, reproduced. name is missed in your file association. Now it is optional and defaults to ext.

1reaction
jay3shcommented, Jan 1, 2017

Ok, it seems when I add fileAssociations entry in my build options this problem occurs.

    "fileAssociations" : {
      "ext" : "ztr",
      "role" : "Editor"
    }

I’ve managed to reproduce it using electron-quick-start example. See if you can reproduce it on your setup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving build errors from helper tools in Xcode Cloud and ...
Review common causes for failing Xcode Cloud builds that originate from helper tools running in a misconfigured build environment.
Read more >
SMLoginItemSetEnabled is causing wrong copy of helper app ...
The error that I'm getting is the same, but installing the app in /Applications doesn't fix the problem because since SMLoginItemSetEnabled only ...
Read more >
Missing File "GameLaunchHelper.exe" after downloading FH5
I've just reinstalled FH5 and when I go to launch the game it comes up with an error saying "Windows cannot find 'C:\Program....
Read more >
Addressing common errors in React Native - LogRocket Blog
Oftentimes, however, the error is caused by using an incompatible Gradle version to build the app. The Android studio build system requires the ......
Read more >
How to Fix You Will Need a New App to Open This Exe File ...
How to Fix You Will Need a New App to Open This Exe File Error [Tutorial] Text In Registry Used: “%1” %* Computer...
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