diff --git a/.travis.yml b/.travis.yml index 3e2f896dc..d7be7839e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -osx_image: xcode8 +osx_image: xcode8.3 language: generic matrix: include: diff --git a/Nimble.xcodeproj/project.pbxproj b/Nimble.xcodeproj/project.pbxproj index a92ae6c9e..c10b82a61 100644 --- a/Nimble.xcodeproj/project.pbxproj +++ b/Nimble.xcodeproj/project.pbxproj @@ -1352,13 +1352,7 @@ 1FD8CD381968AB07008ED995 /* Expression.swift in Sources */, 1FD8CD3A1968AB07008ED995 /* FailureMessage.swift in Sources */, 472FD1351B9E085700C7B8DA /* HaveCount.swift in Sources */, - 9630C0301C6D139F000693EE /* CwlDarwinDefinitions.swift in Sources */, 1FA0C4001E30B14500623165 /* Predicate.swift in Sources */, - 9630C0231C6D0B82000693EE /* mach_excServer.c in Sources */, - 9630C01F1C6D0B2F000693EE /* CwlCatchException.swift in Sources */, - 9630C0131C6D0B18000693EE /* CwlCatchBadInstruction.swift in Sources */, - 9630C01C1C6D0B2F000693EE /* CwlCatchException.m in Sources */, - 9630C02C1C6D125F000693EE /* CwlBadInstructionException.swift in Sources */, 964CFEFD1C4FF48900513336 /* ThrowAssertion.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1794,6 +1788,7 @@ MACOSX_DEPLOYMENT_TARGET = 10.9; METAL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_SWIFT_FLAGS = "$(inherited) -swift-version 3"; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; @@ -1842,6 +1837,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; MACOSX_DEPLOYMENT_TARGET = 10.9; METAL_ENABLE_DEBUG_INFO = NO; + OTHER_SWIFT_FLAGS = "$(inherited) -swift-version 3"; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 3.0; diff --git a/Package.swift b/Package.swift index 46d1ff673..2ef4037a8 100644 --- a/Package.swift +++ b/Package.swift @@ -1,10 +1,12 @@ +// swift-tools-version:3.0 + import PackageDescription let package = Package( name: "Nimble", exclude: [ - "Sources/Lib", - "Sources/NimbleObjectiveC", - "Tests/NimbleTests/objc", + "Sources/Lib", + "Sources/NimbleObjectiveC", + "Tests/NimbleTests/objc", ] ) diff --git a/Sources/Nimble/Matchers/AllPass.swift b/Sources/Nimble/Matchers/AllPass.swift index ee9f55a9e..0c378db1d 100644 --- a/Sources/Nimble/Matchers/AllPass.swift +++ b/Sources/Nimble/Matchers/AllPass.swift @@ -73,7 +73,7 @@ extension NMBObjCMatcher { var collectionIsUsable = true if let value = actualValue as? NSFastEnumeration { - let generator = NSFastEnumerationIterator(value) + var generator = NSFastEnumerationIterator(value) while let obj = generator.next() { if let nsObject = obj as? NSObject { nsObjects.append(nsObject) diff --git a/Sources/Nimble/Matchers/ContainElementSatisfying.swift b/Sources/Nimble/Matchers/ContainElementSatisfying.swift index 0ba5bce77..e71c97e86 100644 --- a/Sources/Nimble/Matchers/ContainElementSatisfying.swift +++ b/Sources/Nimble/Matchers/ContainElementSatisfying.swift @@ -38,7 +38,7 @@ public func containElementSatisfying(_ predicate: @escaping ((T) return false } - let iterator = NSFastEnumerationIterator(enumeration) + var iterator = NSFastEnumerationIterator(enumeration) while let item = iterator.next() { guard let object = item as? NSObject else { continue