Skip to content

Instantly share code, notes, and snippets.

@perseusrealdeal
Last active April 21, 2023 07:39
Show Gist options
  • Save perseusrealdeal/c4327dbe9d930fb10e0fa51c8dedb5ce to your computer and use it in GitHub Desktop.
Save perseusrealdeal/c4327dbe9d930fb10e0fa51c8dedb5ce to your computer and use it in GitHub Desktop.
How to deploy a library with CocoaPods.

Step 1: Make shure that session is registered.

$ pod trunk me

Step 2: Start session if not registered.

$ pod trunk register orta@cocoapods.org 'Orta Therox' --description='macbook pro'

Step 3: Check for syntax errors in podfile.

$ pod lib lint

Step 4: Check for build errors.

$ pod spec lint

Step 5: Push if spec ok.

$ pod trunk push [NAME.podspec]

Note source: https://guides.cocoapods.org/making/getting-setup-with-trunk.html

In case if 'None of your spec sources contain a spec satisfying the dependencies':

$ pod repo update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment