不知何時升到 xcode 9.3, 別人用 xcode 9.2 寫的 library 會無法 build.
I got new error message:
Module compiled with Swift 4.0.3 cannot be imported in Swift 4.1
because AirWatch SDK 18.3 not support xcode 9.3, I try to download and install swift toolchain 4.0.3 from URL:
https://swift.org/download/#releases
Switch toolchain to swift 4.0.3:
and I got new error message with crash:
dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /private/var/containers/Bun dle/Application/90D24C8C-3ADD-46C7-B57E-4DA9B9B80BFE/AirWatchSDK18.3.app/Frameworks/AWSDK.framework/AWSDK Reason: Incompatible library version: AWSDK requires version 1.0.0 or later, but libswiftAVFoundation.dylib provides version 0.0.0
原因是:
Apple states that you can’t mix and match binaries built with different versions of Swift: https://developer.apple.com/swift/blog/?id=2
I have two choices:
- 1: Waiting for new SDK support xcode 9.3
- 2: down-grade to xcode 9.2