I need to upgrade one project to Swift 3.0, that has some libraries by Cocodpods. So, I\'ve removed all links related with Cocoapods and recreate pod file using pod init and
Since you have an outdated pod repo, pod install getting failed. First of all you have to update your pod master repo before running pod install. Follow the steps given to update your pod repo and resolve the pod error.
pod update
on terminal. This will take several minutes to update pod repo.pod install
(if required).Hope this would be useful for those who are getting similar error :)
try sudo gem install cocoapods --pre
the pod file should look like
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'YourAPP' do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON', :git => 'https://github.com/acegreen/SwiftyJSON.git', :branch => 'swift3'
pod 'NetReachability'
end