Skip to content

Commit 0f733f9

Browse files
committed
CocoaPods 私有库测试
CocoaPods 私有库测试
1 parent ca61fad commit 0f733f9

File tree

12 files changed

+178
-32
lines changed

12 files changed

+178
-32
lines changed

ChinaDailyForiPad.xcodeproj/project.pbxproj

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88

99
/* Begin PBXBuildFile section */
1010
310D1BF12074674600FF3CBE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 310D1BF02074674600FF3CBE /* AppDelegate.m */; };
11-
310D1BF42074674600FF3CBE /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 310D1BF32074674600FF3CBE /* ViewController.m */; };
1211
310D1BF72074674600FF3CBE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 310D1BF52074674600FF3CBE /* Main.storyboard */; };
1312
310D1BF92074674600FF3CBE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 310D1BF82074674600FF3CBE /* Assets.xcassets */; };
1413
310D1BFC2074674600FF3CBE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 310D1BFA2074674600FF3CBE /* LaunchScreen.storyboard */; };
1514
310D1BFF2074674600FF3CBE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 310D1BFE2074674600FF3CBE /* main.m */; };
1615
310D1C092074674700FF3CBE /* ChinaDailyForiPadTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 310D1C082074674700FF3CBE /* ChinaDailyForiPadTests.m */; };
1716
310D1C142074674700FF3CBE /* ChinaDailyForiPadUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 310D1C132074674700FF3CBE /* ChinaDailyForiPadUITests.m */; };
18-
310D1C2C2074A83E00FF3CBE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 310D1C2A2074A83D00FF3CBE /* [email protected] */; };
19-
310D1C2D2074A83E00FF3CBE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 310D1C2B2074A83D00FF3CBE /* [email protected] */; };
20-
310D1C302074A86A00FF3CBE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 310D1C2E2074A86A00FF3CBE /* [email protected] */; };
21-
310D1C312074A86A00FF3CBE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 310D1C2F2074A86A00FF3CBE /* [email protected] */; };
22-
3120AD6D20BBF90800CDEE5A /* JStoOC.html in Resources */ = {isa = PBXBuildFile; fileRef = 3120AD6C20BBF90800CDEE5A /* JStoOC.html */; };
23-
31C7E522223F7AC2005753A9 /* girl.png in Resources */ = {isa = PBXBuildFile; fileRef = 31C7E521223F7AC1005753A9 /* girl.png */; };
17+
31F697F622462138001C9B1E /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 31F697ED22462138001C9B1E /* [email protected] */; };
18+
31F697F722462138001C9B1E /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 31F697EE22462138001C9B1E /* [email protected] */; };
19+
31F697F822462138001C9B1E /* girl.png in Resources */ = {isa = PBXBuildFile; fileRef = 31F697EF22462138001C9B1E /* girl.png */; };
20+
31F697F922462138001C9B1E /* JStoOC.html in Resources */ = {isa = PBXBuildFile; fileRef = 31F697F022462138001C9B1E /* JStoOC.html */; };
21+
31F697FA22462138001C9B1E /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 31F697F322462138001C9B1E /* ViewController.m */; };
22+
31F697FB22462138001C9B1E /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 31F697F422462138001C9B1E /* [email protected] */; };
23+
31F697FC22462138001C9B1E /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 31F697F522462138001C9B1E /* [email protected] */; };
2424
/* End PBXBuildFile section */
2525

2626
/* Begin PBXContainerItemProxy section */
@@ -44,8 +44,6 @@
4444
310D1BEC2074674600FF3CBE /* ChinaDailyForiPad.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChinaDailyForiPad.app; sourceTree = BUILT_PRODUCTS_DIR; };
4545
310D1BEF2074674600FF3CBE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4646
310D1BF02074674600FF3CBE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
47-
310D1BF22074674600FF3CBE /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
48-
310D1BF32074674600FF3CBE /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
4947
310D1BF62074674600FF3CBE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5048
310D1BF82074674600FF3CBE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5149
310D1BFB2074674600FF3CBE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
@@ -57,13 +55,15 @@
5755
310D1C0F2074674700FF3CBE /* ChinaDailyForiPadUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ChinaDailyForiPadUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
5856
310D1C132074674700FF3CBE /* ChinaDailyForiPadUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChinaDailyForiPadUITests.m; sourceTree = "<group>"; };
5957
310D1C152074674700FF3CBE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
60-
310D1C2420746CA300FF3CBE /* PrefixHeader.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = "<group>"; };
61-
310D1C2A2074A83D00FF3CBE /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
62-
310D1C2B2074A83D00FF3CBE /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
63-
310D1C2E2074A86A00FF3CBE /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
64-
310D1C2F2074A86A00FF3CBE /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
65-
3120AD6C20BBF90800CDEE5A /* JStoOC.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = JStoOC.html; sourceTree = "<group>"; };
66-
31C7E521223F7AC1005753A9 /* girl.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = girl.png; sourceTree = "<group>"; };
58+
31F697ED22462138001C9B1E /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
59+
31F697EE22462138001C9B1E /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
60+
31F697EF22462138001C9B1E /* girl.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = girl.png; sourceTree = "<group>"; };
61+
31F697F022462138001C9B1E /* JStoOC.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = JStoOC.html; sourceTree = "<group>"; };
62+
31F697F122462138001C9B1E /* PrefixHeader.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = "<group>"; };
63+
31F697F222462138001C9B1E /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
64+
31F697F322462138001C9B1E /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
65+
31F697F422462138001C9B1E /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
66+
31F697F522462138001C9B1E /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
6767
/* End PBXFileReference section */
6868

6969
/* Begin PBXFrameworksBuildPhase section */
@@ -114,17 +114,9 @@
114114
310D1BEE2074674600FF3CBE /* ChinaDailyForiPad */ = {
115115
isa = PBXGroup;
116116
children = (
117-
31C7E521223F7AC1005753A9 /* girl.png */,
118-
310D1C2E2074A86A00FF3CBE /* [email protected] */,
119-
310D1C2F2074A86A00FF3CBE /* [email protected] */,
120-
310D1C2A2074A83D00FF3CBE /* [email protected] */,
121-
310D1C2B2074A83D00FF3CBE /* [email protected] */,
122-
3120AD6C20BBF90800CDEE5A /* JStoOC.html */,
123-
310D1C2420746CA300FF3CBE /* PrefixHeader.pch */,
117+
31F697EC22462138001C9B1E /* WebView */,
124118
310D1BEF2074674600FF3CBE /* AppDelegate.h */,
125119
310D1BF02074674600FF3CBE /* AppDelegate.m */,
126-
310D1BF22074674600FF3CBE /* ViewController.h */,
127-
310D1BF32074674600FF3CBE /* ViewController.m */,
128120
310D1BF52074674600FF3CBE /* Main.storyboard */,
129121
310D1BF82074674600FF3CBE /* Assets.xcassets */,
130122
310D1BFA2074674600FF3CBE /* LaunchScreen.storyboard */,
@@ -152,6 +144,22 @@
152144
path = ChinaDailyForiPadUITests;
153145
sourceTree = "<group>";
154146
};
147+
31F697EC22462138001C9B1E /* WebView */ = {
148+
isa = PBXGroup;
149+
children = (
150+
31F697ED22462138001C9B1E /* [email protected] */,
151+
31F697EE22462138001C9B1E /* [email protected] */,
152+
31F697EF22462138001C9B1E /* girl.png */,
153+
31F697F022462138001C9B1E /* JStoOC.html */,
154+
31F697F122462138001C9B1E /* PrefixHeader.pch */,
155+
31F697F222462138001C9B1E /* ViewController.h */,
156+
31F697F322462138001C9B1E /* ViewController.m */,
157+
31F697F422462138001C9B1E /* [email protected] */,
158+
31F697F522462138001C9B1E /* [email protected] */,
159+
);
160+
path = WebView;
161+
sourceTree = SOURCE_ROOT;
162+
};
155163
/* End PBXGroup section */
156164

157165
/* Begin PBXNativeTarget section */
@@ -258,15 +266,15 @@
258266
isa = PBXResourcesBuildPhase;
259267
buildActionMask = 2147483647;
260268
files = (
261-
3120AD6D20BBF90800CDEE5A /* JStoOC.html in Resources */,
262269
310D1BFC2074674600FF3CBE /* LaunchScreen.storyboard in Resources */,
263-
31C7E522223F7AC2005753A9 /* girl.png in Resources */,
264-
310D1C2D2074A83E00FF3CBE /* [email protected] in Resources */,
270+
31F697FC22462138001C9B1E /* [email protected] in Resources */,
271+
31F697F722462138001C9B1E /* [email protected] in Resources */,
272+
31F697F922462138001C9B1E /* JStoOC.html in Resources */,
265273
310D1BF92074674600FF3CBE /* Assets.xcassets in Resources */,
266-
310D1C312074A86A00FF3CBE /* [email protected] in Resources */,
267274
310D1BF72074674600FF3CBE /* Main.storyboard in Resources */,
268-
310D1C2C2074A83E00FF3CBE /* [email protected] in Resources */,
269-
310D1C302074A86A00FF3CBE /* [email protected] in Resources */,
275+
31F697FB22462138001C9B1E /* [email protected] in Resources */,
276+
31F697F622462138001C9B1E /* [email protected] in Resources */,
277+
31F697F822462138001C9B1E /* girl.png in Resources */,
270278
);
271279
runOnlyForDeploymentPostprocessing = 0;
272280
};
@@ -291,7 +299,7 @@
291299
isa = PBXSourcesBuildPhase;
292300
buildActionMask = 2147483647;
293301
files = (
294-
310D1BF42074674600FF3CBE /* ViewController.m in Sources */,
302+
31F697FA22462138001C9B1E /* ViewController.m in Sources */,
295303
310D1BFF2074674600FF3CBE /* main.m in Sources */,
296304
310D1BF12074674600FF3CBE /* AppDelegate.m in Sources */,
297305
);

WKWebView.podspec

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
#
2+
# Be sure to run `pod spec lint WKWebView.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see https://docs.cocoapods.org/specification.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |spec|
10+
11+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12+
#
13+
# These will help people to find your library, and whilst it
14+
# can feel like a chore to fill in it's definitely to your advantage. The
15+
# summary should be tweet-length, and the description more in depth.
16+
#
17+
18+
spec.name = "WKWebView"
19+
spec.version = "1.0"
20+
spec.summary = "WKWebView的使用、JS和OC的交互、网页内容加载进度条的实现."
21+
22+
# This description is used to generate tags and improve search results.
23+
# * Think: What does it do? Why did you write it? What is the focus?
24+
# * Try to keep it short, snappy and to the point.
25+
# * Write the description between the DESC delimiters below.
26+
# * Finally, don't worry about the indent, CocoaPods strips it!
27+
spec.description = <<-DESC
28+
WKWebView的使用、JS和OC的交互、网页内容加载进度条的实现
29+
DESC
30+
31+
spec.homepage = "https://github.com/wsl2ls/WKWebView"
32+
# spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
33+
34+
35+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
36+
#
37+
# Licensing your code is important. See https://choosealicense.com for more info.
38+
# CocoaPods will detect a license file if there is a named LICENSE*
39+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
40+
#
41+
42+
spec.license = "MIT (example)"
43+
# spec.license = { :type => "MIT", :file => "FILE_LICENSE" }
44+
45+
46+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
47+
#
48+
# Specify the authors of the library, with email addresses. Email addresses
49+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
50+
# accepts just a name if you'd rather not provide an email address.
51+
#
52+
# Specify a social_media_url where others can refer to, for example a twitter
53+
# profile URL.
54+
#
55+
56+
spec.author = { "wsl" => "[email protected]" }
57+
# Or just: spec.author = "wsl"
58+
# spec.authors = { "wsl" => "[email protected]" }
59+
# spec.social_media_url = "https://twitter.com/wsl"
60+
61+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
62+
#
63+
# If this Pod runs only on iOS or OS X, then specify the platform and
64+
# the deployment target. You can optionally include the target after the platform.
65+
#
66+
67+
# spec.platform = :ios
68+
spec.platform = :ios, "8.0"
69+
70+
# When using multiple platforms
71+
# spec.ios.deployment_target = "5.0"
72+
# spec.osx.deployment_target = "10.7"
73+
# spec.watchos.deployment_target = "2.0"
74+
# spec.tvos.deployment_target = "9.0"
75+
76+
77+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
78+
#
79+
# Specify the location from where the source should be retrieved.
80+
# Supports git, hg, bzr, svn and HTTP.
81+
#
82+
83+
spec.source = { :git => "https://github.com/wsl2ls/WKWebView.git", :tag => "v#{spec.version}" }
84+
85+
86+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
87+
#
88+
# CocoaPods is smart about how it includes source code. For source files
89+
# giving a folder will include any swift, h, m, mm, c & cpp files.
90+
# For header files it will include any header in the folder.
91+
# Not including the public_header_files will make all headers public.
92+
#
93+
94+
spec.source_files = "WebView", "WebView/**/*.{h,m}"
95+
spec.exclude_files = "Classes/Exclude"
96+
97+
# spec.public_header_files = "Classes/**/*.h"
98+
99+
100+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
101+
#
102+
# A list of resources included with the Pod. These are copied into the
103+
# target bundle with a build phase script. Anything else will be cleaned.
104+
# You can preserve files from being cleaned, please don't preserve
105+
# non-essential files like tests, examples and documentation.
106+
#
107+
108+
# spec.resource = "icon.png"
109+
# spec.resources = "Resources/*.png"
110+
111+
# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
112+
113+
114+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
115+
#
116+
# Link your library with frameworks, or libraries. Libraries do not include
117+
# the lib prefix of their name.
118+
#
119+
120+
# spec.framework = "SomeFramework"
121+
# spec.frameworks = "SomeFramework", "AnotherFramework"
122+
123+
# spec.library = "iconv"
124+
# spec.libraries = "iconv", "xml2"
125+
126+
127+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
128+
#
129+
# If your library depends on compiler flags you can set them in the xcconfig hash
130+
# where they will only apply to your library. If you depend on other Podspecs
131+
# you can include multiple dependencies to ensure it works.
132+
133+
spec.requires_arc = true
134+
135+
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
136+
# spec.dependency "JSONKit", "~> 1.4"
137+
138+
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)