Now that you've got CocoaPods installed you can easily add it to your project.
...
...
@@ -35,40 +44,55 @@ NOTE 2: CocoaPods re-uses some of the RubyGems 1.3.6 classes. If you have an old
Search for Pods by name or description.
$ pod search asi
==> ASIHTTPRequest (1.8.1)
Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
```
$ pod search asi
==> ASIHTTPRequest (1.8.1)
Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
==> ASIWebPageRequest (1.8.1)
The ASIWebPageRequest class included with ASIHTTPRequest lets you download
complete webpages, including external resources like images and stylesheets.
==> ASIWebPageRequest (1.8.1)
The ASIWebPageRequest class included with ASIHTTPRequest lets you download
complete webpages, including external resources like images and stylesheets.
```
After you've found your favorite dependencies you add them to your [Podfile](https://github.com/CocoaPods/CocoaPods/wiki/A-Podfile).
$ edit Podfile
platform :ios
dependency 'JSONKit', '~> 1.4'
dependency 'Reachability', '~> 2.0.4'
```
$ edit Podfile
```
```ruby
platform:ios
dependency'JSONKit','~> 1.4'
dependency'Reachability','~> 2.0.4'
```
And then you [install the dependencies](https://github.com/CocoaPods/CocoaPods/wiki/Creating-a-project-that-uses-CocoaPods) in your project.
$ pod install App.xcodeproj
```
$ pod install App.xcodeproj
```
_Where ‘App.xcodeproj’ is the name of your actual application project._
The next time you change your Podfile, you can update your project by simply running:
$ pod install
```
$ pod install
```
Remember to always open the Xcode workspace instead of the project file when you're building.
$ open App.xcworkspace
```
$ open App.xcworkspace
```
Sometimes CocoaPods doesn't have a Pod for one of your dependencies yet. Fortunately [creating a Pod](https://github.com/CocoaPods/CocoaPods/wiki/A-pod-specification) is really easy.
$ pod spec create Peanuts
$ edit Peanuts.podspec
$ pod spec lint Peanuts.podspec
```
$ pod spec create Peanuts
$ edit Peanuts.podspec
$ pod spec lint Peanuts.podspec
```
Once you've got it running [create a ticket](https://github.com/CocoaPods/CocoaPods/issues) and upload the Pod. If you're familiar with Git you can also fork the [CocoaPods specs](https://github.com/CocoaPods/Specs) repository and send a pull request. We really love contributions!