Compiling on 10.14, deploying on 10.12

For my project I am compiling on macOS 10.14, but I want to deploy on another machine still running macOS 10.12.

In my Package.swift file I have included the

platforms: [
        .macOS(.v10_12)
]

I can build the release version just fine, and it works on macOS 10.14.

But when I copy the release directory (including the frameworks) to the macOS 10.12 machine, it fails to run with the message:

dyld: Library not loaded: @rpath/libswiftCoreFoundation.dylib
  Referenced from: /Users/rien/Desktop/Release-1-2-1/Swiftfire
  Reason: image not found
Abort trap: 6

Is it possible to cross compile? and if so, any idea's on how to include the libswiftCoreFoundation into the distribution?

1 Like

Thanks a lot Jeremy!

Also thanks for not telling me how stupid I am for not reading the release notes... ;-)

(I used to, but have had too much work lately and it slipped beneath the radar...)

Terms of Service

Privacy Policy

Cookie Policy