8. Podfile
こんなのができてる。
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
target 'HogeFuga' do
end
target 'HogeFugaTests' do
end
9. Podfile
使いたいPodを記述する。
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'HogeFuga' do
pod 'BFTaskPromise', '~> 2.0'
end
target 'HogeFugaTests' do
end
13. 使いたいPodが増えた
Podfileを修正。
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'HogeFuga' do
pod 'BFTaskPromise', '~> 2.0'
pod 'Realm'
end
target 'HogeFugaTests' do
pod 'Realm/Headers'
end
↓
$ pod install
25. テンプレートから作成
質問に答えていくと、Podの種を作ってくれる。
$ pod lib create [pod name]
↓ 実は初めて実行してみた
$ pod lib create Piyo
Cloning `https://github.com/CocoaPods/pod-template.git` into `Piyo`.
Configuring Piyo template.
------------------------------
To get you started we need to ask a few questions, this should only take a minute.
2015-07-04 21:25:09.912 defaults[82243:2285211]
The domain/default pair of (org.cocoapods.pod-template, HasRunbefore) does not exist
If this is your first time we recommend running through with the guide:
- http://guides.cocoapods.org/making/using-pod-lib-create.html
( hold cmd and double click links to open in a browser. )
Press return to continue.
What language do you want to use?? [ ObjC / Swift ]
>
objc
Would you like to include a demo application with your library? [ Yes / No ]
>
yes
Which testing frameworks will you use? [ Specta / Kiwi / None ]
>