Comments (5)
The master branch should already be Swift 2. There is a swift12 branch for Swift 1.2. What error are you getting?
Edit: Oh, I realize I haven't released a Swift 2 to CocoaPods yet. I will do that now.
from swiftr.
I had to change the following lines:
let fileManager = NSFileManager.defaultManager()
try! fileManager.removeItemAtURL(jqueryTempURL)
try! fileManager.removeItemAtURL(signalRTempURL)
try! fileManager.removeItemAtURL(jsTempURL)
try! fileManager.copyItemAtURL(jqueryURL, toURL: jqueryTempURL)
try! fileManager.copyItemAtURL(signalRURL, toURL: signalRTempURL)
try! fileManager.copyItemAtURL(jsURL, toURL: jsTempURL)
To this:
let fileManager = NSFileManager.defaultManager()
do {
try fileManager.removeItemAtURL(jqueryTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
do {
try fileManager.removeItemAtURL(signalRTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
do {
try fileManager.removeItemAtURL(jsTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
do {
try fileManager.copyItemAtURL(jqueryURL, toURL: jqueryTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
do {
try fileManager.copyItemAtURL(signalRURL, toURL: signalRTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
do {
try fileManager.copyItemAtURL(jsURL, toURL: jsTempURL)
} catch let error as NSError {
print("Error: \(error)")
}
from swiftr.
OK, thanks. You're right. Fixing now.
from swiftr.
The code has been updated and SwiftR v0.8.0 released (also published to CocoaPods). Let me know how it works out for you.
from swiftr.
Closing as everything looks good on iOS 9, OS X 10.11 with Swift 2.
from swiftr.
Related Issues (20)
- Ignore SSL on SignalR HOT 3
- "There was an error invoking Hub" Swift 4 HOT 5
- My signalR connection is established but can not invoke the hub function.
- hub.invoke(...) Won't handle any response.
- SignalR 1.0.0-preview2-final in .NET core?
- SwiftR 0.14.0 is not connecting with server using Xcode 9.3, Swift 4.1 and iOS 11.3 HOT 3
- dyld: Library not loaded: @rpath/SwiftR.framework/SwiftR
- Spelling issue
- Hub.on is not getting called after establishing connection HOT 1
- How to remove registed hub in hubs
- How can i upgrade from v2.2 to v2.4?
- Close a persistent connection
- loging connection information
- How to remove event from chathub?
- Xcode 10 can't run in swift 4 HOT 5
- Mac Catalyst support! HOT 3
- UIWebView deprecated from iOS 13 HOT 1
- UIWebView deprecated HOT 9
- not supporting latest iOS . please make it compatible for swift 5 and iOS 15.
- Solved UIWebView deprecated and Swift 5 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftr.