本地 CocoaPods
[依赖管理器] https://stackoverflow.com/a/59257708/4770877
[具有特定分支的可可足类] https://stackoverflow.com/a/73836830/4770877
Example with Git:
Textual
Podfile
//Podfile pod supports:
//default(try to find .podcpec in centralised repo), path
//-remote
pod 'PodName'
//-local
//local_path can be absolute or relative
pod 'PodName', :path => '<local_path>.podspec'
Podspec
//Podspec source supports:
//git, svn, hg, http
//-remote
s.source = { :git => "https://url_to.git", :tag => "git_tag" }
//-local
s.source = { :git => 'file:///path_to_git_folder', :tag => "git_tag" }
//or, where path_to_git_folder can be relative
s.source = { :git => '/path_to_git_folder', :tag => "git_tag" }
不要忘记提前提交更改。git_tag
可以与分支名称相同。
几个有用的命令:
Update:
Podfile
:
pod update
Check
.podspec
:
pod spec lint "<some_path>.podspec" --quick
pod spec lint "<some_path>.podspec" --verbose --allow-warnings
注册会话:
pod trunk register <email> '<name>' --description='<description>'
Release:
pod trunk push <file>.podspec --verbose --allow-warnings
Pod search[About] https://stackoverflow.com/a/59218883/4770877:
pod search <pod_name>
[当地迦太基] https://stackoverflow.com/a/61397924/4770877
[本地 Swift 包管理器] https://stackoverflow.com/a/66715856/4770877
[Android Maven 本地] https://stackoverflow.com/a/65738150/4770877