1.電腦安裝cocopods
cocoapods安裝
sudo gem install cocoapods
pod setup
公升級 gem
sudo gem update --system
更新ruby源
gem sources --remove
gem sources -a
gen source -l
使用cocoapods映象索引
pod repo remove master
pod repo add master
pod repo update
為自己開源專案建立spec 檔案
pod spec create spec_name
使用私有的pods
pod 'mycommon',"'podsepec' => ''
不更新podspec
pod install --no-repo-update
pod update --no-repo-update
生成第三方庫的幫助文件
2.專案工程安裝pod
cd 工程目錄
vim profile
platform
:ios,
'8.0'
use_frameworks!
targetdo
pod'afnetworking'
,'~>2.6'
endpod install
cocoapods 安裝使用
一 安裝ruby映象檔案 參考 步驟一 替換安裝映象路徑 gem sources add remove 輔助命令列 查詢 gem sources l current sources 請確保只有 ruby.taobao.org 步驟二 安裝映象 gem install rails v 二 安裝coco...
CocoaPods 安裝 使用
1.開啟 terminal 2.移除現有 ruby 預設源 gem sources remove 3.使用新的源 gem sources a 4.驗證新源是否替換成功 gem sources l 5.安裝 cocoapods sudo gem install cocoapods pod setup ...
CocoaPods 安裝使用
檢視下當前ruby版本 開啟終端輸入 注意一定要是 https 開頭的 gem sources l如果出現結果為 current sources 則替換成功 1 安裝cocoapods sudo gem install cocoapods備註 蘋果系統公升級 os x el capitan 後改為 ...