Created
November 18, 2011 08:38
-
-
Save matsuda/1375918 to your computer and use it in GitHub Desktop.
install and setup CocoaPods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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