Skip to content

Instantly share code, notes, and snippets.

@sdpjswl
Last active August 29, 2015 14:17
Show Gist options
  • Save sdpjswl/2d4cbb249309808dc863 to your computer and use it in GitHub Desktop.
Save sdpjswl/2d4cbb249309808dc863 to your computer and use it in GitHub Desktop.
A crash course to get started with CocoaPods
1. sudo gem install cocoapods // install command line tool (do this just once)
2. pod setup // clones the pod repo locally (do this just once)
3. in a project folder, 'pod init' // creates a podfile
4. in the podfile, add pod names, eg: pod 'AFNetworking'
5. in the project folder on terminal, 'pod install'
6. to update, 'pod update'
7. to install or uninstall pods, modify Podfile and run 'pod install'
8. in case of any problem:
- pod repo remove master
- pod setup
9. remove broken installation:
- rm -rf ~/.cocoapods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment