Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCODE : Pod Update

I am using reachability, SwiftJSON, crashlytics pod files in my projects which is baselined to iOS9. currently I’m XCODE 7 to run my project. now i need to migrate my code to swift 3.0. My question is how to update the pod files. Currently the versions of pod file is 2.3. How can i migrate it to 3.0.

like image 927
user1256276 Avatar asked Mar 09 '23 06:03

user1256276


2 Answers

If you haven't updated cocoapod itself, I recommend you to do a gem install cocoapods to get the latest version, working with Xcode 8.x

If your pods are not tagged with any version restriction like pod 'ReachabilitySwift', '~> 2' you just need to run pod update, otherwise you need to check yourself first which version you need/want for swift 3.

like image 172
zero3nna Avatar answered Mar 27 '23 05:03

zero3nna


For pod update : type pod update in terminal For migration of your project, open it up in Xcode 8+ and there will an option of automatic conversion. Check this one out if issues arises.

NOTE: Keep backup of your old project somewhere.

like image 29
ankit Avatar answered Mar 27 '23 06:03

ankit