Skip to content

Instantly share code, notes, and snippets.

@matsuda
Created November 18, 2011 08:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsuda/1375918 to your computer and use it in GitHub Desktop.
Save matsuda/1375918 to your computer and use it in GitHub Desktop.
install and setup CocoaPods
#
# CocoaPods - An Objective-C library dependency manager
# https://github.com/CocoaPods/CocoaPods
#
# sample application
# https://github.com/matsuda/CocoaPodsSample
#
# refs
# http://iphone-dev.g.hatena.ne.jp/laiso/20111117/1321437909
#
#
# install MacRuby
# http://www.macruby.org/
#
$ wget http://www.macruby.org/files/MacRuby%200.10.zip
--2011-11-18 17:28:46-- http://www.macruby.org/files/MacRuby%200.10.zip
Resolving www.macruby.org... 17.254.20.238
Connecting to www.macruby.org|17.254.20.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21317801 (20M) [application/zip]
Saving to: `MacRuby 0.10.zip'
100%[==============================================================================================================================================================>] 21,317,801 520K/s in 41s
2011-11-18 17:29:28 (508 KB/s) - `MacRuby 0.10.zip' saved [21317801/21317801]
$ open MacRuby\ 0.10.zip
$ open MacRuby\ 0.10/MacRuby\ 0.10.pkg
#
# install CocoaPods
#
$ sudo macgem install cocoapods
Password:
[!] If this is your first time install of CocoaPods, or if you are upgrading, first run: $ pod setup
Successfully installed xcodeproj-0.0.2
Successfully installed cocoapods-0.3.4
2 gems installed
$ pod setup
==> Cloning spec repo `master' from `git://github.com/CocoaPods/Specs.git'
# create CocoaPosdSample project
$ cat Podfile
platform :ios
dependency 'AFNetworking'
$ pod install CocoaPodsSample.xcodeproj
Installing dependencies of: /Users/xxx/dev/iPhone/CocoaPodsSample/Podfile
==> Installing: AFNetworking (0.7.0)
* Downloading: AFNetworking (0.7.0)
==> Installing: JSONKit (1.4)
* Downloading: JSONKit (1.4)
==> Generating support files
==> Running post install hooks
==> Generating Xcode project
[!] From now on use `CocoaPodsSample.xcworkspace' instead of `CocoaPodsSample.xcodeproj'.
$ open CocoaPodsSample.xcworkspace/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment