Skip to content

Commit 8912525

Browse files
committed
新增一个 target,依赖另外两个
1 parent 711e7b3 commit 8912525

3 files changed

Lines changed: 147 additions & 0 deletions

File tree

CocoaPodsDemo/BSStaticLibraryOne/BSStaticLibraryOne.xcodeproj/project.pbxproj

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,27 @@
1515
9B53E8551E223564005F74C6 /* BSStaticLibraryTwo.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B53E8541E223564005F74C6 /* BSStaticLibraryTwo.m */; };
1616
9B53E8561E223564005F74C6 /* BSStaticLibraryTwo.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9B53E8531E223564005F74C6 /* BSStaticLibraryTwo.h */; };
1717
9B53E85B1E224C62005F74C6 /* BSStaticLibraryTwo.h in Headers */ = {isa = PBXBuildFile; fileRef = 9B53E8531E223564005F74C6 /* BSStaticLibraryTwo.h */; settings = {ATTRIBUTES = (Public, ); }; };
18+
9B53E8641E226EA4005F74C6 /* Pod.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B53E8631E226EA4005F74C6 /* Pod.m */; };
19+
9B53E8651E226EA4005F74C6 /* Pod.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9B53E8621E226EA4005F74C6 /* Pod.h */; };
1820
/* End PBXBuildFile section */
1921

22+
/* Begin PBXContainerItemProxy section */
23+
9B53E8691E226EAD005F74C6 /* PBXContainerItemProxy */ = {
24+
isa = PBXContainerItemProxy;
25+
containerPortal = 9B0B717F1E20DD5A005D11BA /* Project object */;
26+
proxyType = 1;
27+
remoteGlobalIDString = 9B0B71861E20DD5A005D11BA;
28+
remoteInfo = BSStaticLibraryOne;
29+
};
30+
9B53E86B1E226EAD005F74C6 /* PBXContainerItemProxy */ = {
31+
isa = PBXContainerItemProxy;
32+
containerPortal = 9B0B717F1E20DD5A005D11BA /* Project object */;
33+
proxyType = 1;
34+
remoteGlobalIDString = 9B53E8501E223564005F74C6;
35+
remoteInfo = BSStaticLibraryTwo;
36+
};
37+
/* End PBXContainerItemProxy section */
38+
2039
/* Begin PBXCopyFilesBuildPhase section */
2140
9B0B71851E20DD5A005D11BA /* CopyFiles */ = {
2241
isa = PBXCopyFilesBuildPhase;
@@ -38,6 +57,16 @@
3857
);
3958
runOnlyForDeploymentPostprocessing = 0;
4059
};
60+
9B53E85E1E226EA4005F74C6 /* CopyFiles */ = {
61+
isa = PBXCopyFilesBuildPhase;
62+
buildActionMask = 2147483647;
63+
dstPath = "include/$(PRODUCT_NAME)";
64+
dstSubfolderSpec = 16;
65+
files = (
66+
9B53E8651E226EA4005F74C6 /* Pod.h in CopyFiles */,
67+
);
68+
runOnlyForDeploymentPostprocessing = 0;
69+
};
4170
/* End PBXCopyFilesBuildPhase section */
4271

4372
/* Begin PBXFileReference section */
@@ -49,6 +78,9 @@
4978
9B53E8511E223564005F74C6 /* libBSStaticLibraryTwo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libBSStaticLibraryTwo.a; sourceTree = BUILT_PRODUCTS_DIR; };
5079
9B53E8531E223564005F74C6 /* BSStaticLibraryTwo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BSStaticLibraryTwo.h; sourceTree = "<group>"; };
5180
9B53E8541E223564005F74C6 /* BSStaticLibraryTwo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSStaticLibraryTwo.m; sourceTree = "<group>"; };
81+
9B53E8601E226EA4005F74C6 /* libPod.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPod.a; sourceTree = BUILT_PRODUCTS_DIR; };
82+
9B53E8621E226EA4005F74C6 /* Pod.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Pod.h; sourceTree = "<group>"; };
83+
9B53E8631E226EA4005F74C6 /* Pod.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Pod.m; sourceTree = "<group>"; };
5284
/* End PBXFileReference section */
5385

5486
/* Begin PBXFrameworksBuildPhase section */
@@ -66,6 +98,13 @@
6698
);
6799
runOnlyForDeploymentPostprocessing = 0;
68100
};
101+
9B53E85D1E226EA4005F74C6 /* Frameworks */ = {
102+
isa = PBXFrameworksBuildPhase;
103+
buildActionMask = 2147483647;
104+
files = (
105+
);
106+
runOnlyForDeploymentPostprocessing = 0;
107+
};
69108
/* End PBXFrameworksBuildPhase section */
70109

71110
/* Begin PBXGroup section */
@@ -74,6 +113,7 @@
74113
children = (
75114
9B0B71891E20DD5A005D11BA /* BSStaticLibraryOne */,
76115
9B53E8521E223564005F74C6 /* BSStaticLibraryTwo */,
116+
9B53E8611E226EA4005F74C6 /* Pod */,
77117
9B0B71881E20DD5A005D11BA /* Products */,
78118
);
79119
sourceTree = "<group>";
@@ -83,6 +123,7 @@
83123
children = (
84124
9B0B71871E20DD5A005D11BA /* libBSStaticLibraryOne.a */,
85125
9B53E8511E223564005F74C6 /* libBSStaticLibraryTwo.a */,
126+
9B53E8601E226EA4005F74C6 /* libPod.a */,
86127
);
87128
name = Products;
88129
sourceTree = "<group>";
@@ -107,6 +148,15 @@
107148
path = BSStaticLibraryTwo;
108149
sourceTree = "<group>";
109150
};
151+
9B53E8611E226EA4005F74C6 /* Pod */ = {
152+
isa = PBXGroup;
153+
children = (
154+
9B53E8621E226EA4005F74C6 /* Pod.h */,
155+
9B53E8631E226EA4005F74C6 /* Pod.m */,
156+
);
157+
path = Pod;
158+
sourceTree = "<group>";
159+
};
110160
/* End PBXGroup section */
111161

112162
/* Begin PBXHeadersBuildPhase section */
@@ -166,6 +216,25 @@
166216
productReference = 9B53E8511E223564005F74C6 /* libBSStaticLibraryTwo.a */;
167217
productType = "com.apple.product-type.library.static";
168218
};
219+
9B53E85F1E226EA4005F74C6 /* Pod */ = {
220+
isa = PBXNativeTarget;
221+
buildConfigurationList = 9B53E8661E226EA4005F74C6 /* Build configuration list for PBXNativeTarget "Pod" */;
222+
buildPhases = (
223+
9B53E85C1E226EA4005F74C6 /* Sources */,
224+
9B53E85D1E226EA4005F74C6 /* Frameworks */,
225+
9B53E85E1E226EA4005F74C6 /* CopyFiles */,
226+
);
227+
buildRules = (
228+
);
229+
dependencies = (
230+
9B53E86A1E226EAD005F74C6 /* PBXTargetDependency */,
231+
9B53E86C1E226EAD005F74C6 /* PBXTargetDependency */,
232+
);
233+
name = Pod;
234+
productName = Pod;
235+
productReference = 9B53E8601E226EA4005F74C6 /* libPod.a */;
236+
productType = "com.apple.product-type.library.static";
237+
};
169238
/* End PBXNativeTarget section */
170239

171240
/* Begin PBXProject section */
@@ -183,6 +252,10 @@
183252
CreatedOnToolsVersion = 8.2;
184253
ProvisioningStyle = Automatic;
185254
};
255+
9B53E85F1E226EA4005F74C6 = {
256+
CreatedOnToolsVersion = 8.2;
257+
ProvisioningStyle = Automatic;
258+
};
186259
};
187260
};
188261
buildConfigurationList = 9B0B71821E20DD5A005D11BA /* Build configuration list for PBXProject "BSStaticLibraryOne" */;
@@ -199,6 +272,7 @@
199272
targets = (
200273
9B0B71861E20DD5A005D11BA /* BSStaticLibraryOne */,
201274
9B53E8501E223564005F74C6 /* BSStaticLibraryTwo */,
275+
9B53E85F1E226EA4005F74C6 /* Pod */,
202276
);
203277
};
204278
/* End PBXProject section */
@@ -221,8 +295,29 @@
221295
);
222296
runOnlyForDeploymentPostprocessing = 0;
223297
};
298+
9B53E85C1E226EA4005F74C6 /* Sources */ = {
299+
isa = PBXSourcesBuildPhase;
300+
buildActionMask = 2147483647;
301+
files = (
302+
9B53E8641E226EA4005F74C6 /* Pod.m in Sources */,
303+
);
304+
runOnlyForDeploymentPostprocessing = 0;
305+
};
224306
/* End PBXSourcesBuildPhase section */
225307

308+
/* Begin PBXTargetDependency section */
309+
9B53E86A1E226EAD005F74C6 /* PBXTargetDependency */ = {
310+
isa = PBXTargetDependency;
311+
target = 9B0B71861E20DD5A005D11BA /* BSStaticLibraryOne */;
312+
targetProxy = 9B53E8691E226EAD005F74C6 /* PBXContainerItemProxy */;
313+
};
314+
9B53E86C1E226EAD005F74C6 /* PBXTargetDependency */ = {
315+
isa = PBXTargetDependency;
316+
target = 9B53E8501E223564005F74C6 /* BSStaticLibraryTwo */;
317+
targetProxy = 9B53E86B1E226EAD005F74C6 /* PBXContainerItemProxy */;
318+
};
319+
/* End PBXTargetDependency section */
320+
226321
/* Begin XCBuildConfiguration section */
227322
9B0B718E1E20DD5A005D11BA /* Debug */ = {
228323
isa = XCBuildConfiguration;
@@ -352,6 +447,24 @@
352447
};
353448
name = Release;
354449
};
450+
9B53E8671E226EA4005F74C6 /* Debug */ = {
451+
isa = XCBuildConfiguration;
452+
buildSettings = {
453+
OTHER_LDFLAGS = "-ObjC";
454+
PRODUCT_NAME = "$(TARGET_NAME)";
455+
SKIP_INSTALL = YES;
456+
};
457+
name = Debug;
458+
};
459+
9B53E8681E226EA4005F74C6 /* Release */ = {
460+
isa = XCBuildConfiguration;
461+
buildSettings = {
462+
OTHER_LDFLAGS = "-ObjC";
463+
PRODUCT_NAME = "$(TARGET_NAME)";
464+
SKIP_INSTALL = YES;
465+
};
466+
name = Release;
467+
};
355468
/* End XCBuildConfiguration section */
356469

357470
/* Begin XCConfigurationList section */
@@ -381,6 +494,14 @@
381494
);
382495
defaultConfigurationIsVisible = 0;
383496
};
497+
9B53E8661E226EA4005F74C6 /* Build configuration list for PBXNativeTarget "Pod" */ = {
498+
isa = XCConfigurationList;
499+
buildConfigurations = (
500+
9B53E8671E226EA4005F74C6 /* Debug */,
501+
9B53E8681E226EA4005F74C6 /* Release */,
502+
);
503+
defaultConfigurationIsVisible = 0;
504+
};
384505
/* End XCConfigurationList section */
385506
};
386507
rootObject = 9B0B717F1E20DD5A005D11BA /* Project object */;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// Pod.h
3+
// Pod
4+
//
5+
// Created by 张星宇 on 2017/1/8.
6+
// Copyright © 2017年 bestswifter. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@interface Pod : NSObject
12+
13+
@end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// Pod.m
3+
// Pod
4+
//
5+
// Created by 张星宇 on 2017/1/8.
6+
// Copyright © 2017年 bestswifter. All rights reserved.
7+
//
8+
9+
#import "Pod.h"
10+
11+
@implementation Pod
12+
13+
@end

0 commit comments

Comments
 (0)