cocoapodsプライベートライブラリ共通コマンドセット

1631 ワード

1.pod repo add spec specURL

spec  spec 
specURL  spec 
open ~/.cocoapods/repos  cocoapods/repos repos 

2.pod lib createローカルテンプレートクラスの作成

pod lib create textProject  

3.pod lib lint ProjectName.podspec --allow-warnings

pod lib lint  
ProjectName  
--allow-warnings  

4.pod spec lint ProjectName.podspec --sources='http://git.xxx.com/Mobile/ZGFrameWork.git,https://github.com/CocoaPods/Specs.git' --use-libraries --allow-warnings

pod spec lint  
ProjectName  
--sources='http://git.xxx.com/Mobile/ZGFrameWork.git,https://github.com/CocoaPods/Specs.git'  , cocoapods 
--use-libraries  , 
--allow-warnings  

5.pod repo push spec ProjectName.podspec --allow-warnings

pod repo push spec  spec   ProjectName.podspec
 ,pod repo push spec ProjectName.podspec  --allow-warnings --use-libraries


6.pod repo & pod repo list

pod repo  spec , 

7.pod search

pod search  

8.pod init & touch Podfile

pod init   touch Podfile   , Podfile 

9.source ‘https://git.coding.net/handsome5/TestSpec3161.git’ &

      source ‘https://github.com/CocoaPods/Specs.git’
source ‘https://git.coding.net/handsome5/TestSpec3161.git ’
source ‘https://github.com/CocoaPods/Specs.git’
 pod , pod repo  spec 。
 cocoapods , , 

10.pod install