How to install a pod from a specific branch? How to install a pod from a specific branch? xcode xcode

How to install a pod from a specific branch?


The podfile guide mentions the following syntax:

To use a different branch of the repo:

pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'dev'                                                                             ^^^                                                                   (the space is important)

So in your case, that would be:

pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git', :branch => 'swift3-mariotaku'


If you just want to use the main branch (master), write the following command:

pod "SAConfettiView", :git => 'https://github.com/oskarko/SAConfettiView.git'

But if you want to use an alternative/different branch, this one is for you:

pod "SAConfettiView", :git => 'https://github.com/oskarko/SAConfettiView.git', :branch => 'develop'

Easy peasy! 😊