(pods 使用教程)
1.如果沒有安裝pods的和不會使用的請看上面兩個鏈結。
2.pods的簡單使用
那麼接下來這樣操作使用cocoa pods,
(1)進入專案******weather.project所在的資料夾,在終端輸入以下命令,?
1
cd desktop/develop/******weather
(2)在該目錄中,通過vim新建podfile?
1
vim podfile
(3)通過i(insert模式),插入如下的語句,?
1
2
3
4
5
6
platform :ios,
'7.0'
pod
'mantle'
pod
'lbblurredimage'
pod
'tsmessages'
pod
'reactivecocoa'
這樣就指定了第三方資源的ios版本、開源庫主要包括:mantle、lbblurredimage、tsmessages、reactivecocoa,這些都不重要,這裡只是示範而已。
輸入完成以後退出vim並儲存,先esc然後輸入:wq,表示寫入並退出。
(4)在終端輸入$pod install,?
1
pod install
3.最近更新的兩個命令
//pod install --verbose --no-repo-update
//pod update --verbose --no-repo-update
4.**換了https
Cocoapods第三方庫快速整合
假設mac系統已經安裝成功cocoapods,下面介紹如何整合第三方庫到專案中。一共分三步驟 第一 建立podfile 切換到要整合的專案所在的資料夾,執行touch podfile命令 第二 編輯podfile 還是在專案所在的目錄下,搜尋要整合的庫 需要提前知道庫名 比如要整合afnetwork...
Cocoapods使用第三方的步驟
cocoapods使用第三方的步驟 1.進入工程資料夾 在終端 輸入cd,然後把資料夾放進去 2.初始化pod檔案 pod init 3.開啟podfile檔案 刪 只保留 platform ios,8.0 4.輸入命令搜尋想要的第三方 pod search mbprogress 5.貼上 pod ...
CocoaPods匯入第三方框架
the dependency afnetworking 3.1 0 is not used in any concrete target.參考解決方法 文中提出了一種醜的解決方法和一種優雅的解決方法 前一種方法 podfile platform ios,9.0 use frameworks my o...