# # Be sure to run `pod lib lint CDUtils.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html #
# This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? # * Try to keep it short, snappy and to the point. # * Write the description between the DESC delimiters below. # * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC TODO: Add long description of the pod here. DESC
PoetMacBook-Pro:Example kris$ pod install Analyzing dependencies Downloading dependencies Generating Pods project Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. PoetMacBook-Pro:Example kris$
$ pod repo add CDSpecs https://github.com/DavidWanderer/CDSpecs.git
cocoapods本地仓库路径为:
1
$ ~/.cocoapods/repos
发布私有库
在自己的私有库目录下执行命令,把当前私有库的索引同步到本地索引库,并同步给远程索引库。
1
$ pod repo push CDUtils CDUtils.podspec
终端截图:
在自己的项目中引用私有库
Podfile如下:
1 2 3 4 5 6 7 8 9 10 11
# Uncomment the next line to define a global platform for your project source'https://github.com/CocoaPods/Specs.git' source'https://github.com/DavidWanderer/CDSpecs.git' platform :ios, '8.0'
target '测试'do # Comment the next line if you don't want to use dynamic frameworks #use_frameworks! pod 'CDUtils', '~> 0.0.1'