CocoaPodsのはなし

※ ただしObjective-Cに限る

@hironytic

テンプレートから作成

質問に答えていくと、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 ]

 > 

specta

Would you like to do view based testing? [ Yes / No ]

 > 

yes

What is your class prefix?

 > PY


Running pod install on your new library.


Analyzing dependencies


CocoaPods 0.38.0.beta.1 is available.

To update use: `gem install cocoapods --pre`

[!] This is a test version we'd love you to try.


For more information see http://blog.cocoapods.org

and the CHANGELOG for this version http://git.io/BaH8pQ.


Fetching podspec for `Piyo` from `../`

Downloading dependencies

Installing Expecta (1.0.0)

Installing Expecta+Snapshots (1.3.4)

Installing FBSnapshotTestCase (1.8.1)

Installing Piyo (0.1.0)

Installing Specta (1.0.2)

Generating Pods project

Integrating client project


[!] Please close any current Xcode sessions and use `Piyo.xcworkspace` for this project from now on.


 Ace! you're ready to go!

 We will start you off by opening your project in Xcode

  open 'Piyo/Example/Piyo.xcworkspace'


To learn more about the template see `https://github.com/CocoaPods/pod-template.git`.

To learn more about creating a new pod, see `http://guides.cocoapods.org/making/making-a-cocoapod`.