Open camhart opened 4 years ago
It appears it's not possible from what I'm reading. However if you install https://support.apple.com/kb/DL1998?locale=en_US on the machine then the library gets added.
Starting with Xcode 10.2, Swift 5 command line programs you build require the Swift 5 runtime support libraries built into macOS. These libraries are included in the OS starting with macOS Mojave 10.14.4. When running on earlier versions of macOS, this package must be installed to provide the necessary Swift 5 libraries. This package is not necessary for apps with graphical user interfaces.
Hmm, yeah, it seems like we can't really do anything more here I think 🤔
Potentially we could detect it from Node.js before loading and print a better error message though...
Using this on older versions of Mac OS (High Sierra for example), causes this error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Anyway to indicate that the build should embed that?