diff --git a/Nimble.xcodeproj/project.pbxproj b/Nimble.xcodeproj/project.pbxproj index 8748018cf..e97082ef4 100644 --- a/Nimble.xcodeproj/project.pbxproj +++ b/Nimble.xcodeproj/project.pbxproj @@ -1946,6 +1946,7 @@ PRODUCT_NAME = Nimble; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -1980,6 +1981,7 @@ PRODUCT_NAME = Nimble; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.2; }; name = Release; }; @@ -2173,6 +2175,7 @@ PRODUCT_NAME = Nimble; SDKROOT = macosx; SKIP_INSTALL = YES; + SWIFT_VERSION = 4.0; VALID_ARCHS = x86_64; }; name = Debug; @@ -2211,6 +2214,7 @@ SDKROOT = macosx; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.0; VALID_ARCHS = x86_64; }; name = Release; diff --git a/Sources/Nimble/Utils/Async.swift b/Sources/Nimble/Utils/Async.swift index ffc0e1912..6b6b0cc0e 100644 --- a/Sources/Nimble/Utils/Async.swift +++ b/Sources/Nimble/Utils/Async.swift @@ -261,7 +261,7 @@ internal class AwaitPromiseBuilder { self.trigger.timeoutSource.resume() while self.promise.asyncResult.isIncomplete() { // Stopping the run loop does not work unless we run only 1 mode - _ = RunLoop.current.run(mode: .defaultRunLoopMode, before: .distantFuture) + _ = RunLoop.current.run(mode: .default, before: .distantFuture) } self.trigger.timeoutSource.cancel()