Once you are done it will create the folder for MZFacebookManager. Inside this you can see structure like:

.podspec file at the root is important file. This will contains your Pod version, dependencies, git url etc with some other Pod descriptions. You can edit the details, version and also define dependencies if your Framework is using any other third party Framework. Like in my case, my Framework is using ‘FBSDKLoginKit‘ and ‘FBSDKCoreKit‘.

Once you are done with editing of podspec file you need to validate this file. You can do this with Pod lib lint command.

$ pod lib lint

Now open github website and create a new repository for MZFacebookManager (give your Framework name).

Once it is created, go back to terminal again and push your code (You can also ignore this Push if you don’t want to push a default code on your git).

But if you want to push, just make sure once again your .podspec file is defined the correct url of git repository.

This will push the default code of your Framework. Now open XCode again and add your Framework files.

Delete ReplaceMe file

Add your ObjC or Swift files (based on the project type you have chosen at the start)

Like i have added three files inside development i.e. MZFacebookManager.h, MZFacebookLoginManager.h and .m files. These files will show when you install the Pod Framework.

Once all files added and there is no error in your code. Update the version of your Framework by updating this inside .podspec file (0.1.1) and run lib lint command again to make sure everything is correct.

$ pod lib lint

When validation success, now first push the code on git by giving a tag.

$ git tag 0.1.1$ git push origin 0.1.1

Push your Pods Spec

$ pod trunk push MZFacebookManager.podspec

At first time you will get the error message to resgister your session:

About Muzammil

Hey Guys, I am Muzammil Mohammad. Having 7 years of experience in iOS development.
I am here to share my knowledge with all mobile application developers and those companies who are stuck on development (due to bad quality of code or don't know what to do) or want to know how to build a good mobile app. I believe I am more expert in UI and Architecture design of mobile app.
So if you need my helps or assistant for your mobile app projects, Feel free to contact me. I will try my best to improve the quality of your app. Or you can hire me to develop your apps. I’d love to talk with you.
Best!