First check the swift and Xcode version that you are using and if that version support the pod file you are using
Swift 2.2 (Xcode 7.3)
Use:-
pod 'IQKeyboardManagerSwift'
Or
pod 'IQKeyboardManagerSwift', '4.0.3'
For Swift 2.1.1 (Xcode 7.2)
Use :-
pod 'IQKeyboardManagerSwift', '4.0.0'
For Swift 2.0 (Xcode 7.0)
Use :-
pod 'IQKeyboardManagerSwift', '3.3.3.1'
I had similar problem , turns out i had two Cocoapods instances installed, This is a Cocoapods issue not an Xcode one (in my case it was').
All i needed to do was uninstall my cocoapod and reinstall it
https://stackoverflow.com/a/27940867/6297658......
This worked for me...
Once you are done reinstalling go to your pod file add pods according to the version of swift and Xcode you are using and then run pod install
PS: Cocoapods REPO is nearly 350MB, so if your download is stuck don't just quit Terminal
and start reinstalling again first uninstall Cocoapods
and old master repo
both completely, then start installing again ... this is probably what caused two instances of it in my case