Create a Podfile at the root of your project
platform :ios
pod 'AFNetworking'
pod 'OHAttributedLabel'
target :MyAppTests, :exclusive => true do
pod 'Kiwi'
end
Then install your project's dependencies
pod install
Configure git to work with Cocoapods:
echo "\n#CocoaPods\nPods" >> .gitignore
git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata
You might consider configuring your project to use Bundler for managing it's dependency on CocoaPods itself. Yes, this is a package manager for your package manager, but it adds additional explicit declaration of project dependencies and it can help automatically setup boxes with Bundler installed.
bundle install --path vendor/bundle
bundle exec pod install
I'm usually adding the :deployment_target on the top as well, like
platform :ios, :deployment_target => "5.0"