From cbf4ce6f361a68835a1df513bc4fbe98ae64fb71 Mon Sep 17 00:00:00 2001 From: Adam Hartford Date: Thu, 15 Sep 2016 10:40:39 -0400 Subject: [PATCH] Fix for CocoaPods and Swift 3 --- .swift-version | 1 + SwiftR/SwiftR.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .swift-version diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..9f55b2c --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +3.0 diff --git a/SwiftR/SwiftR.swift b/SwiftR/SwiftR.swift index 0813193..7808c7e 100644 --- a/SwiftR/SwiftR.swift +++ b/SwiftR/SwiftR.swift @@ -199,7 +199,7 @@ open class SignalR: NSObject, SwiftRWebDelegate { super.init() #if COCOAPODS - let bundle = NSBundle(identifier: "org.cocoapods.SwiftR")! + let bundle = Bundle(identifier: "org.cocoapods.SwiftR")! #elseif SWIFTR_FRAMEWORK let bundle = Bundle(identifier: "com.adamhartford.SwiftR")! #else