Skip to content
Pablo Villar edited this page Sep 29, 2016 · 16 revisions
  1. Create the podspec file in your root folder (/ExampleProject.podspec) and fill it by using this template as model.
  2. Create a .swift-version file in your project, that must only contain the swift version value in which the library compiles (for instance: 3.0).
  3. Create a commit, a pull request and, once merged into master branch, create a git tag with the version number you specified in the podspec file.
  4. Run in terminal (using --verbose if you get errors):
    1. pod lib lint, which checks your project locally.
    2. pod spec lint, which checks remotely against git.
  5. Once passed, trunk, which is basically running:
    1. pod trunk me
      • if no session registered:
        • pod trunk register [email protected] 'Your Name' --description='your computer description'
        • Verify email link
    2. pod trunk push

It will take some time for your pod to be available in cocoapods search page 🔍 .

Clone this wiki locally