1.
$ git clone https:
//github.com/wangzz/WZMarqueeView.git
1.1 podspec文件內容html
WZMarqueeView.podspec的保存內容爲: 01.
Pod::Spec.
new
do
|s|
02.
s.name =
"WZMarqueeView"
03.
s.version =
"1.0.0"
04.
s.summary =
"A marquee view used on iOS."
05.
s.description = <<-DESC
06.
It is a marquee view used on iOS, which implement by Objective-C.
07.
DESC
08.
s.homepage =
"https://github.com/wangzz/WZMarqueeView"
09.
# s.screenshots =
"www.example.com/screenshots_1"
,
"www.example.com/screenshots_2"
10.
s.license =
'MIT'
11.
s.author = {
"王中周"
=>
"wzzvictory_tjsd@163.com"
}
12.
s.source = { :git =>
"https://github.com/wangzz/WZMarqueeView.git"
, :tag => s.version.to_s }
13.
# s.social_media_url =
'https://twitter.com/NAME'
14.
15.
s.platform = :ios,
'4.3'
16.
# s.ios.deployment_target =
'5.0'
17.
# s.osx.deployment_target =
'10.7'
18.
s.requires_arc =
true
19.
20.
s.source_files =
'WZMarqueeView*.h'
26.
s.frameworks =
'Foundation'
,
'CoreGraphics'
,
'UIKit'
27.
28.
end
1.2 如何建立podspec文件ios
你們建立本身的podspec文件能夠有兩個途徑: ①copy個人podspec文件而後修改對應的參數,推薦使用這種方式。 ②執行如下建立命令: 1.
$ pod spec create WZMarqueeView
1.
$ set the
new
version to
1.0
.
0
2.
$ set the
new
tag to
1.0
.
0
1.
$ pod lib lint
1.
-> WZMarqueeView (
1.0
.
0
)
2.
3.
WZMarqueeView passed validation.
1.
$ git add -A && git commit -m
"Release 1.0.0."
2.
$ git tag
'1.0.0'
3.
$ git push --tags
4.
$ git push origin master
1.
$ git clone https:
//github.com/wangzz/Specs.git
1.
$ git add -A && git commit -m
"Add WZMarqueeView podspec file"
2.
$ git push origin master
1.
$ pod setup
1.
$ pod search WZMarqueeView