Reputation: 4589
I would like to use the following library https://github.com/daltoniam/Starscream in my Xcode project. Cocoa pods are not an option for me(I get a hundred errors), therefore I would like to add it directly. What is the proper way to add library manually so I can access its functionality?
Upvotes: 0
Views: 3839
Reputation: 13514
Download the library and add all files from Source folder to your project and you can use them. If there is no constraint on other libraries you can use Socket.IO.
You will not need to import it as you are adding the source files to your target. So you can directly use
WebSocket(url: URL(string: "ws://localhost:8080/")!)
As figured out you can use CocoaPod and update your code and Xcode to latest Swift.
Upvotes: 2