zhuhaow / NEKit

A toolkit for Network Extension Framework
https://zhuhaow.github.io/NEKit
BSD 3-Clause "New" or "Revised" License
2.84k stars 670 forks source link

Swift 4 Support #218

Closed TheMrugraj closed 5 years ago

TheMrugraj commented 5 years ago

Not able to move ahead after carthage update due to the Incompatible version of Swift for two libraries.


    "Incompatible Swift version - framework was built with 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1) and the local version is 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)."
*** Downloading tun2socks.framework binary at "0.6.1"
*** Skipped installing tun2socks.framework binary due to the error:
    "Incompatible Swift version - framework was built with 3.0.1 (swiftlang-800.0.58.6 clang-800.0.42.1) and the local version is 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)."```

Is there any idea on how to get NEKit running.
zhuhaow commented 5 years ago

Does this work?

carthage update --no-use-binaries --platform mac,ios

TheMrugraj commented 5 years ago

No it does not work. Still facing the same issue

zhuhaow commented 5 years ago

Sorry for the late reply. I just tried carthage update --no-use-binaries --platform mac,ios and it works. It's not likely you will see the same error if you use --no-use-binaries since there is no binaries used, so there can't be error as "framework was built with 3.0.1"