Create Cocoapod for swift framework

会有一股神秘感。 提交于 2019-12-12 04:48:38

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/29376297/create-cocoapod-for-swift-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!