I am running XCode 7, Swift 2.0, iOS 9.
I want to install Alamofire in my project using Cocoapods. I have done the following:
gem install cocoapods
Have you checked if you have a recent version of Cocoapods ? You can update by either updating all your gems :
sudo gem update
or just reinstall Cocoapods:
[sudo] gem install cocoapods
If that doesn't help take also a look at : CocoaPods - build for iOS 9 / Swift 2 with Xcode-beta
where is shows you how to easily change the Command-Line tools version in the Xcode Preferences "Locations" tab, and change "Command Line Tools" to Xcode 7.0.