realm-swift
realm-swift copied to clipboard
OS X Swift installation test fails due to using prebuilt binary for wrong Swift version
When releasing v2.4.3 tonight the installation examples job failed: https://ci.realm.io/job/Cocoa%20Release%20Installation%20Examples/37/.
In particular, the two jobs that test Swift with our prebuilt dynamic libraries fail with errors like this:
/Users/realm/workspace/Cocoa Release Installation Examples/binding/swift/method/dynamic/platform/osx/realm-cocoa/examples/installation/osx/swift-3.0/DynamicExample/DynamicExample/AppDelegate.swift:20:8: error: module compiled with Swift 3.0 cannot be imported in Swift 3.0.2: /Users/realm/workspace/Cocoa Release Installation Examples/binding/swift/method/dynamic/platform/osx/realm-cocoa/examples/installation/osx/swift-3.0/DynamicExample/../../../realm-swift-latest/osx/swift-3.0/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule
It looks like Xcode 8.2 with Swift 3.0.2 is being used to build the example, but something is pulling in the Swift 3.0.0 version of the framework.
The Xcode projects in question hard-code the swift-3.0 framework path in their framework search paths. We need to update the version specified in the project and/or explicitly specify which version of Xcode the CI job uses.