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.

Cross building electron 2.0.11 on Linux for Mac OS X broken (worked with electron 1.8.8)

See original GitHub issue
  • Version: 20.28.4
  • Target: Mac/Windows/Linux (32/64-bit)

  • Output of node_modules/.bin/electron --version: v2.0.11

  • Operating System (Platform and Version) that ran the built version: Mac OS X 10.11.6 (15G22010)

  • Operating System (Platform and Version) where electron-builder was run: Linux 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): v1.8.8

Expected Behavior Building electron for multiple platforms on Linux and running it on Mac OS X worked well with electron 1.8.8, building it with:

electron-builder --win --mac zip --linux AppImage --x64 --ia32

Actual behavior With electron 2.0.11 the cross platform build binary fails at start with the following error report:

Process:               APP [1239]
Path:                  /Users/USER/Downloads/APP.app/Contents/MacOS/APP
Identifier:            com.company.app
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           APP [1239]
User ID:               501

Date/Time:             2018-10-23 08:32:10.716 +0200
OS Version:            Mac OS X 10.11.6 (15G22010)
Report Version:        11
Anonymous UUID:        5623F84E-462A-5F0D-B125-A74632BAD08D


Time Awake Since Boot: 510 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /Users/USER/Downloads/APP.app/Contents/MacOS/APP
  Reason: image not found

Binary Images:
    0x7fff61b0f000 -     0x7fff61b46a47  dyld (360.22) <6B9CD3BA-2D60-3629-A0CB-AB810F55E8DD> /usr/lib/dyld

Model: MacPro3,1, BootROM MP31.006C.B05, 8 processors, Quad-Core Intel Xeon, 2,8 GHz, 32 GB, SMC 1.25f4
Graphics: AMD Radeon HD 6xxx, AMD Radeon HD 6xxx, PCIe, 1024 MB
Graphics: ATI Radeon HD 2600 XT, ATI Radeon HD 2600, PCIe, 256 MB
Memory Module: DIMM Riser B/DIMM 1, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser B/DIMM 2, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser A/DIMM 1, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser A/DIMM 2, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser B/DIMM 3, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser B/DIMM 4, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser A/DIMM 3, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
Memory Module: DIMM Riser A/DIMM 4, 4 GB, DDR2 FB-DIMM, 800 MHz, 0x80CE, 0x4D3339355435313630515A342D4345363620
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.74.0-P2P
Bluetooth: Version 4.4.6f4, 3 services, 18 devices, 1 incoming serial ports
Network Service: Ethernet 1, Ethernet, en0
Network Service: Ethernet 2, Ethernet, en1
Network Service: Wi-Fi, AirPort, en2
Serial ATA Device: Samsung SSD 850 EVO 500GB, 500,11 GB
Serial ATA Device: ST2000DX001-1NS164, 2 TB
Parallel ATA Device: OPTIARC DVD RW AD-7170A
USB Device: USB Bus
USB Device: USB Bus
USB Device: Evoluent VerticalMouse 4 Left
USB Device: Evoluent VerticalMouse 3
USB Device: USB Bus
USB Device: Bluetooth HCI
USB Device: USB Bus
USB Device: USB 2.0 Bus
USB Device: USB2.0 Hub
USB Device: Mass Storage Device
USB Device: Microsoft® Nano Transceiver v2.0
USB Device: KB700 Kinesis Freestyle
FireWire Device: built-in_hub, Up to 800 Mb/sec
Thunderbolt Bus: 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davejcommented, Oct 29, 2018

Right Oops. I received a similar error when I didn’t have productName specified.

0reactions
hacker112commented, Nov 13, 2018

I am not using auto update. But the zip that is created when I build.

If we see the build process as two parts:

  1. Build the app (for mac)
  2. Package the app for distribution (in this case zip)

Step 1 works, but step 2 fails.

This screenshot show what works and the zip that that breaks the app: screenshot-2018-11-13-08 02 03

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Instructions (macOS) - Electron
Follow the guidelines below for building **Electron itself** on macOS, ... if using dependencies that need to cross-compile on x64 and arm64 machines....
Read more >
Building electron app on new m1 mac fails - Stack Overflow
I'm not an electron expert but it looks like you're trying to use Electron v1.8.8 but Electron with Apple Silicon support released with...
Read more >
What's New | Oracle, Software. Hardware. Complete.
Oracle Linux with Oracle enterprise-class support is the best Linux operating system (OS) for your enterprise computing needs.
Read more >
Package List — Spack 0.20.0.dev0 documentation
This extension defines a protcol that allows X window managers to better interact with the Mac OS X Aqua user interface when running...
Read more >
Multi Platform Build - electron-builder
macOS Code Signing works only on macOS. Cannot be fixed. Free public Electron Build Service is used to build Electron app for Linux...
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