Reputation: 7233
I am planning to make Cocoapod for my framework written in Swift which is placed on github here. I went through the Cocoapod documentation but I am not able to wrap my head around it.
Could anyone please explain how to achieve it or point to any tutorial that will explain it.
Upvotes: 0
Views: 339
Reputation: 1488
It's pretty simple. I found this video tutorial incredibly helpful when I started. It's for Objective-C, but should pretty much be the same for Swift.
Also, the video is from a few years back, so when it tells you to 'do a pull request to the Cocoapods specs repo' just ignore it.
Since that video came out, Cocoapods has stopped accepting pull requests to their specs repo. Now you need to run a command called trunk
which essentially lets Cocoapods add the spec automatically. You can read more about it here
You also may find it helpful to check out some examples of Swift pod specs like this
Upvotes: 2