4

I decided to try and learn electron so I cloned the electron quick start and installed the dependencies with npm i and ran npm start but I need help because of this error:

dyld: Symbol not found: ___NSArray0__
  Referenced from: /Users/martin/Desktop/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/MacOS/../Frameworks/ReactiveObjC.framework/ReactiveObjC (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 in /Users/martin/Desktop/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/MacOS/../Frameworks/ReactiveObjC.framework/ReactiveObjC
/Users/martin/Desktop/electron-quick-start/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGTRAP
Tony
  • 618
  • 12
  • 27

1 Answers1

0

Electron uses MacOS local frameworks, that weirdly enough, you don't seem to have on your computer.

Try to list your frameworks to confirm this: ls -al /System/Library/Frameworks/

If you don't have any, or miss some of them (depending on your OS version), chances are you won't be able to build anything native at all, and your system should be all broken by now (plus, CoreFoundation is the most important framework): a clean install of the latest XCode won't install those frameworks back AFAIK.

Then, your options are:

Maen
  • 10,603
  • 3
  • 45
  • 71