Kex Kex - 1 month ago 12x
Swift Question

How to update pods to Swift 3.0

Currently in the process of migrating to Swift 3.0. This is my first time doing anything like this and I am not entirely sure how to deal with the various pods I am using. For example I am using the pod SwiftDate: The Swift 3.0 branch isn't on the master so I assume running

pod update
won't pull the Swift 3.0 version. Am I correct in putting pod:

'SwiftDate', :git => '', :branch => 'feature/swift-3.0'

into my podfile and then running the update? Checking the github page seems this is the correct branch. Do branches only need to be specified like this when the Swift 3.0 version isn't on the master? Any tips and pointers on this would be greatly appreciated! Thanks!


First of all you need to update your CocaPod if you haven't done it.

Open terminal and run:

sudo gem install cocoapods --pre

Then add the update part to your pod:

pod 'SwiftDate', :git => '', :branch => 'feature/swift-3.0'

Then in terminal run pod update