Skip to content

Instantly share code, notes, and snippets.

@andrewsardone
Last active January 31, 2020 17:07

Revisions

  1. andrewsardone revised this gist Mar 24, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    Create a `Podfile` at the root of your project

    ```ruby
    platform :ios
    platform :ios, '5.0'

    pod 'AFNetworking'
    pod 'OHAttributedLabel'
  2. andrewsardone revised this gist Oct 15, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,8 @@ echo "\n# CocoaPods\nPods" >> .gitignore
    git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata
    ```

    Luke Redpath [points][lrtweet1] [out][lrtweet2] that checking in your `Pods` directory has its advantages. Consider not adding it to your `.gitignore` and simply committing your new `Podfile`, `Podfile.lock`, and Xcode workspace.

    ## Bundler

    You might consider [configuring your project to use Bundler][bundler] for managing it's dependency on CocoaPods itself. Yes, this is a package manager for your package manager, but it adds an additional explicit declaration of project dependencies and it helps automatically setup boxes with [Bundler][bundlerhomepage] installed.
    @@ -37,4 +39,6 @@ bundle exec pod install

    [bundler]: http://git.io/bundlersetup
    [cocoapods]: http://cocoapods.org/
    [bundlerhomepage]: http://gembundler.com/
    [bundlerhomepage]: http://gembundler.com/
    [lrtweet1]: https://twitter.com/lukeredpath/statuses/257753196733292544
    [lrtweet2]: https://twitter.com/lukeredpath/statuses/257753281860890624
  3. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ pod install
    Configure git to work with Cocoapods:

    ```shell
    echo "\n#CocoaPods\nPods" >> .gitignore
    echo "\n# CocoaPods\nPods" >> .gitignore
    git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata
    ```

  4. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata

    You might consider [configuring your project to use Bundler][bundler] for managing it's dependency on CocoaPods itself. Yes, this is a package manager for your package manager, but it adds an additional explicit declaration of project dependencies and it helps automatically setup boxes with [Bundler][bundlerhomepage] installed.

    ```shell
    ```
    bundle install --path vendor/bundle
    bundle exec pod install
    ```
  5. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata

    ## Bundler

    You might consider [configuring your project to use Bundler][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][bundlerhomepage] installed.
    You might consider [configuring your project to use Bundler][bundler] for managing it's dependency on CocoaPods itself. Yes, this is a package manager for your package manager, but it adds an additional explicit declaration of project dependencies and it helps automatically setup boxes with [Bundler][bundlerhomepage] installed.

    ```shell
    bundle install --path vendor/bundle
  6. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## [CocoaPods](http://cocoapods.org/) project setup

    Create a Podfile at the root of your project
    Create a `Podfile` at the root of your project

    ```ruby
    platform :ios
  7. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## CocoaPods project setup
    ## [CocoaPods](http://cocoapods.org/) project setup

    Create a Podfile at the root of your project

    @@ -37,4 +37,4 @@ bundle exec pod install

    [bundler]: http://git.io/bundlersetup
    [cocoapods]: http://cocoapods.org/
    [bundlerhomepage]: http://gembundler.com/
    [bundlerhomepage]: http://gembundler.com/
  8. andrewsardone revised this gist Oct 14, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,6 @@ bundle install --path vendor/bundle
    bundle exec pod install
    ```

    [gist]: http://git.io/cocoapodssetup NOT SETUP YET
    [bundler]: http://git.io/bundlersetup
    [cocoapods]: http://cocoapods.org/
    [bundlerhomepage]: http://gembundler.com/
  9. andrewsardone created this gist Oct 14, 2012.
    41 changes: 41 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    ## CocoaPods project setup

    Create a Podfile at the root of your project

    ```ruby
    platform :ios

    pod 'AFNetworking'
    pod 'OHAttributedLabel'

    target :MyAppTests, :exclusive => true do
    pod 'Kiwi'
    end
    ```

    Then install your project's dependencies

    ```shell
    pod install
    ```

    Configure git to work with Cocoapods:

    ```shell
    echo "\n#CocoaPods\nPods" >> .gitignore
    git add -f .gitignore Podfile Podfile.lock **/*contents.xcworkspacedata
    ```

    ## Bundler

    You might consider [configuring your project to use Bundler][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][bundlerhomepage] installed.

    ```shell
    bundle install --path vendor/bundle
    bundle exec pod install
    ```

    [gist]: http://git.io/cocoapodssetup NOT SETUP YET
    [bundler]: http://git.io/bundlersetup
    [cocoapods]: http://cocoapods.org/
    [bundlerhomepage]: http://gembundler.com/