Reset Cocoa Pod
Remove Pod from your project and add again.
or
try sudo pod repo update or pod repo update
And one more important thing that you should miss:
Install the command line tool version in Xcode.
You can download the latest command line from the Apple Download Portal if you have a paid Apple developer account / id.
Here are the current stable Xcode tools and link support for downloading the command line tool. (Make sure you are logged in using the premium developer account on your Apple Developer account to access these links)
Xcode 9
Once you have the latest command line tool installed on your system, install it from the Xcode menu.
(Xcode menu items) Xcode βΊ Preferences βΊ Location βΊ Command Line Tool βΊ Select the appropriate command line tool


Update Alamofire in your swap file.
Try the following: Install Alamofire
pod 'Alamofire', '~> 4.7'
source share