I found these tutorials to create our own cocoapod:

* <https://guides.cocoapods.org/making/making-a-cocoapod.html>
* <http://code.tutsplus.com/tutorials/creating-your-first-cocoapod--cms-24332>

but for me none of them helps, as they create fresh xcode project using pod lib create. I have my own xcode project and I need to setup in that rather than create a fresh one.