Skip to content

Instantly share code, notes, and snippets.

@STAR-ZERO
Created February 21, 2013 02:02
Show Gist options
  • Select an option

  • Save STAR-ZERO/5001341 to your computer and use it in GitHub Desktop.

Select an option

Save STAR-ZERO/5001341 to your computer and use it in GitHub Desktop.
CocoaPodsの使い方

CocoaPodsの使い方

インストール

※要Ruby

$ gem install cocoapods
$ pod setup

https://github.com/CocoaPods/CocoaPods

Podfile作成

.xcodeprojと同じ階層にPodfileを作成

platform :ios

pod 'CocoaLumberjack'

ドキュメント

使えるライブラリは ココ

ライブラリのインストール

Xcodeは閉じておく

$ pod install

プロジェクト名.xcworkspaceが作成されるのでそっちを開く

gitignore

.gitignoreにPodsディレクトリを除外

# CocoaPods
Pods/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment