I'm learning swift, primarily from command line. I don't want to create ios / mac apps. Just want to learn the language and probably create some scripts.
Within this context, how do I import 3rd party libraries? Say SwiftJSON. Instructions are given for importing in Xcode. But I don't want to use Xcode. I there any alternate method to use code developed by others?
(I do develop on Mac)
Have you tried out CocoaPods? It's a dependency manager for Swift and iOS projects and makes adding dependencies much easier.
Ayoola Solomon
Mobile and Web Developer
Thanks @sandeep for inviting me. Checkout Carthage, it works exactly like Cocoapods but it was written solely in Swift. Check out this tuts on how to include a 3rd party library in your project.