I installed “CocoaPods”, a library management tool that can be used for Mac app and iOS app development.
% gem install cocoapods
% pod setup
Setting up CocoaPods master repo
Setup completed (read-only access)
% pod --help
CocoaPods, the Objective-C library package manager.
Commands:
* install Install project dependencies
* ipc Inter-process communication
* list List pods
* outdated Show outdated project dependencies
* push Push new specifications to a spec-repo
* repo Manage spec-repositories
* search Search pods
* setup Setup the CocoaPods environment
* spec Manage pod specs
* update Update outdated project dependencies
Options:
--silent Show nothing
--version Show the version of CocoaPods
--no-color Show output without color
--verbose Show more debugging information
--help Show help banner of specified command
■ Error Handling
[!] The platform of the target `Pods` (iOS 4.3) is not compatible with
Specify the supported iOS version in the Podfile
Podfile
platform :ios, '5.0'
■ Items to add to .gitignore
Pods/
MyPorjectName.xcworkspace
■ Pods need to be built separately to create the libPods.a file
If you don’t build, you’ll get an error that libPods.a file cannot be found.
ld: library not found for -lPods
The following sites were very clear and helpful for building Pods and creating libPods.a.
・CocoaPodsを使ったXcodeプロジェクトの作り方(1) - shigeki.takeguchi.log
・CocoaPodsを使ったXcodeプロジェクトの作り方(2) - shigeki.takeguchi.log
・CocoaPodsを使ったXcodeプロジェクトの作り方(3) - shigeki.takeguchi.log
・CocoaPodsを使ったXcodeプロジェクトの作り方(4) - shigeki.takeguchi.log
[References]
・CocoaPods: The Objective-C Library Manager
・CocoaPods ではじめる Objective-C ライブラリ管理 (1) - Watsonのメモ
・CocoaPodsでPodの利用&作成のメモ #Objective-C #CocoaPods - Qiita [キータ]
That’s all from the Gemba.