Skip to content

Commit b49ebd2

Browse files
committed
Added UniversalStaticLibrary
1 parent ee9c8ec commit b49ebd2

16 files changed

+1713
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 45;
7+
objects = {
8+
9+
/* Begin PBXAggregateTarget section */
10+
4C93C95A128908C600FC429A /* Build Universal Library */ = {
11+
isa = PBXAggregateTarget;
12+
buildConfigurationList = 4C93C95F128908D200FC429A /* Build configuration list for PBXAggregateTarget "Build Universal Library" */;
13+
buildPhases = (
14+
4C93C959128908C600FC429A /* ShellScript */,
15+
);
16+
dependencies = (
17+
);
18+
name = "Build Universal Library";
19+
productName = "Build Universal Library";
20+
};
21+
/* End PBXAggregateTarget section */
22+
23+
/* Begin PBXBuildFile section */
24+
4C93C94C1289082F00FC429A /* XCSampleClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C93C6861287E0AC00FC429A /* XCSampleClass.m */; };
25+
/* End PBXBuildFile section */
26+
27+
/* Begin PBXFileReference section */
28+
4C93C6851287E0AC00FC429A /* XCSampleClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCSampleClass.h; sourceTree = "<group>"; };
29+
4C93C6861287E0AC00FC429A /* XCSampleClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XCSampleClass.m; sourceTree = "<group>"; };
30+
4C93C9421289069E00FC429A /* libUniversalStaticLibrary.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libUniversalStaticLibrary.a; sourceTree = BUILT_PRODUCTS_DIR; };
31+
AA747D9E0F9514B9006C5449 /* UniversalStaticLibrary_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UniversalStaticLibrary_Prefix.pch; sourceTree = SOURCE_ROOT; };
32+
AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
33+
/* End PBXFileReference section */
34+
35+
/* Begin PBXFrameworksBuildPhase section */
36+
4C93C9231289060400FC429A /* Frameworks */ = {
37+
isa = PBXFrameworksBuildPhase;
38+
buildActionMask = 2147483647;
39+
files = (
40+
);
41+
runOnlyForDeploymentPostprocessing = 0;
42+
};
43+
/* End PBXFrameworksBuildPhase section */
44+
45+
/* Begin PBXGroup section */
46+
034768DFFF38A50411DB9C8B /* Products */ = {
47+
isa = PBXGroup;
48+
children = (
49+
4C93C9421289069E00FC429A /* libUniversalStaticLibrary.a */,
50+
);
51+
name = Products;
52+
sourceTree = "<group>";
53+
};
54+
0867D691FE84028FC02AAC07 /* UniversalStaticLibrary */ = {
55+
isa = PBXGroup;
56+
children = (
57+
08FB77AEFE84172EC02AAC07 /* Classes */,
58+
32C88DFF0371C24200C91783 /* Other Sources */,
59+
0867D69AFE84028FC02AAC07 /* Frameworks */,
60+
034768DFFF38A50411DB9C8B /* Products */,
61+
);
62+
name = UniversalStaticLibrary;
63+
sourceTree = "<group>";
64+
};
65+
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
66+
isa = PBXGroup;
67+
children = (
68+
AACBBE490F95108600F1A2B1 /* Foundation.framework */,
69+
);
70+
name = Frameworks;
71+
sourceTree = "<group>";
72+
};
73+
08FB77AEFE84172EC02AAC07 /* Classes */ = {
74+
isa = PBXGroup;
75+
children = (
76+
4C93C6851287E0AC00FC429A /* XCSampleClass.h */,
77+
4C93C6861287E0AC00FC429A /* XCSampleClass.m */,
78+
);
79+
name = Classes;
80+
sourceTree = "<group>";
81+
};
82+
32C88DFF0371C24200C91783 /* Other Sources */ = {
83+
isa = PBXGroup;
84+
children = (
85+
AA747D9E0F9514B9006C5449 /* UniversalStaticLibrary_Prefix.pch */,
86+
);
87+
name = "Other Sources";
88+
sourceTree = "<group>";
89+
};
90+
/* End PBXGroup section */
91+
92+
/* Begin PBXHeadersBuildPhase section */
93+
4C93C9211289060400FC429A /* Headers */ = {
94+
isa = PBXHeadersBuildPhase;
95+
buildActionMask = 2147483647;
96+
files = (
97+
);
98+
runOnlyForDeploymentPostprocessing = 0;
99+
};
100+
/* End PBXHeadersBuildPhase section */
101+
102+
/* Begin PBXNativeTarget section */
103+
4C93C9241289060400FC429A /* UniversalStaticLibrary */ = {
104+
isa = PBXNativeTarget;
105+
buildConfigurationList = 4C93C9291289062300FC429A /* Build configuration list for PBXNativeTarget "UniversalStaticLibrary" */;
106+
buildPhases = (
107+
4C93C9211289060400FC429A /* Headers */,
108+
4C93C9221289060400FC429A /* Sources */,
109+
4C93C9231289060400FC429A /* Frameworks */,
110+
);
111+
buildRules = (
112+
);
113+
dependencies = (
114+
);
115+
name = UniversalStaticLibrary;
116+
productName = Untitled;
117+
productReference = 4C93C9421289069E00FC429A /* libUniversalStaticLibrary.a */;
118+
productType = "com.apple.product-type.library.static";
119+
};
120+
/* End PBXNativeTarget section */
121+
122+
/* Begin PBXProject section */
123+
0867D690FE84028FC02AAC07 /* Project object */ = {
124+
isa = PBXProject;
125+
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "UniversalStaticLibrary" */;
126+
compatibilityVersion = "Xcode 3.1";
127+
developmentRegion = English;
128+
hasScannedForEncodings = 1;
129+
knownRegions = (
130+
English,
131+
Japanese,
132+
French,
133+
German,
134+
);
135+
mainGroup = 0867D691FE84028FC02AAC07 /* UniversalStaticLibrary */;
136+
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
137+
projectDirPath = "";
138+
projectRoot = "";
139+
targets = (
140+
4C93C9241289060400FC429A /* UniversalStaticLibrary */,
141+
4C93C95A128908C600FC429A /* Build Universal Library */,
142+
);
143+
};
144+
/* End PBXProject section */
145+
146+
/* Begin PBXShellScriptBuildPhase section */
147+
4C93C959128908C600FC429A /* ShellScript */ = {
148+
isa = PBXShellScriptBuildPhase;
149+
buildActionMask = 2147483647;
150+
files = (
151+
);
152+
inputPaths = (
153+
);
154+
outputPaths = (
155+
);
156+
runOnlyForDeploymentPostprocessing = 0;
157+
shellPath = /bin/sh;
158+
shellScript = "# make a new output folder\nmkdir -p ${PROJECT_DIR}/build/${BUILD_STYLE}-universal/${PRODUCT_NAME}\n \n# combine lib files for various platforms into one\nlipo -create \"${PROJECT_DIR}/build/${BUILD_STYLE}-iphoneos/lib${PRODUCT_NAME}.a\" \"${PROJECT_DIR}/build/${BUILD_STYLE}-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${PROJECT_DIR}/build/${BUILD_STYLE}-universal/${PRODUCT_NAME}.a\"";
159+
};
160+
/* End PBXShellScriptBuildPhase section */
161+
162+
/* Begin PBXSourcesBuildPhase section */
163+
4C93C9221289060400FC429A /* Sources */ = {
164+
isa = PBXSourcesBuildPhase;
165+
buildActionMask = 2147483647;
166+
files = (
167+
4C93C94C1289082F00FC429A /* XCSampleClass.m in Sources */,
168+
);
169+
runOnlyForDeploymentPostprocessing = 0;
170+
};
171+
/* End PBXSourcesBuildPhase section */
172+
173+
/* Begin XCBuildConfiguration section */
174+
1DEB922308733DC00010E9CD /* Debug */ = {
175+
isa = XCBuildConfiguration;
176+
buildSettings = {
177+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
178+
GCC_C_LANGUAGE_STANDARD = c99;
179+
GCC_OPTIMIZATION_LEVEL = 0;
180+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
181+
GCC_WARN_UNUSED_VARIABLE = YES;
182+
OTHER_LDFLAGS = "-ObjC";
183+
PREBINDING = NO;
184+
SDKROOT = iphoneos;
185+
};
186+
name = Debug;
187+
};
188+
1DEB922408733DC00010E9CD /* Release */ = {
189+
isa = XCBuildConfiguration;
190+
buildSettings = {
191+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
192+
GCC_C_LANGUAGE_STANDARD = c99;
193+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
194+
GCC_WARN_UNUSED_VARIABLE = YES;
195+
OTHER_LDFLAGS = "-ObjC";
196+
PREBINDING = NO;
197+
SDKROOT = iphoneos;
198+
};
199+
name = Release;
200+
};
201+
4C93C9261289060500FC429A /* Debug */ = {
202+
isa = XCBuildConfiguration;
203+
buildSettings = {
204+
ALWAYS_SEARCH_USER_PATHS = NO;
205+
COPY_PHASE_STRIP = NO;
206+
GCC_DYNAMIC_NO_PIC = NO;
207+
GCC_OPTIMIZATION_LEVEL = 0;
208+
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
209+
PREBINDING = NO;
210+
PRODUCT_NAME = UniversalStaticLibrary;
211+
SDKROOT = iphoneos;
212+
TARGETED_DEVICE_FAMILY = "1,2";
213+
};
214+
name = Debug;
215+
};
216+
4C93C9271289060500FC429A /* Release */ = {
217+
isa = XCBuildConfiguration;
218+
buildSettings = {
219+
ALWAYS_SEARCH_USER_PATHS = NO;
220+
COPY_PHASE_STRIP = YES;
221+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
222+
GCC_ENABLE_FIX_AND_CONTINUE = NO;
223+
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
224+
PREBINDING = NO;
225+
PRODUCT_NAME = UniversalStaticLibrary;
226+
SDKROOT = iphoneos;
227+
TARGETED_DEVICE_FAMILY = "1,2";
228+
ZERO_LINK = NO;
229+
};
230+
name = Release;
231+
};
232+
4C93C95B128908C600FC429A /* Debug */ = {
233+
isa = XCBuildConfiguration;
234+
buildSettings = {
235+
COPY_PHASE_STRIP = NO;
236+
GCC_DYNAMIC_NO_PIC = NO;
237+
GCC_OPTIMIZATION_LEVEL = 0;
238+
PRODUCT_NAME = UniversalStaticLibrary;
239+
};
240+
name = Debug;
241+
};
242+
4C93C95C128908C600FC429A /* Release */ = {
243+
isa = XCBuildConfiguration;
244+
buildSettings = {
245+
COPY_PHASE_STRIP = YES;
246+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
247+
GCC_ENABLE_FIX_AND_CONTINUE = NO;
248+
PRODUCT_NAME = UniversalStaticLibrary;
249+
ZERO_LINK = NO;
250+
};
251+
name = Release;
252+
};
253+
/* End XCBuildConfiguration section */
254+
255+
/* Begin XCConfigurationList section */
256+
1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "UniversalStaticLibrary" */ = {
257+
isa = XCConfigurationList;
258+
buildConfigurations = (
259+
1DEB922308733DC00010E9CD /* Debug */,
260+
1DEB922408733DC00010E9CD /* Release */,
261+
);
262+
defaultConfigurationIsVisible = 0;
263+
defaultConfigurationName = Release;
264+
};
265+
4C93C9291289062300FC429A /* Build configuration list for PBXNativeTarget "UniversalStaticLibrary" */ = {
266+
isa = XCConfigurationList;
267+
buildConfigurations = (
268+
4C93C9261289060500FC429A /* Debug */,
269+
4C93C9271289060500FC429A /* Release */,
270+
);
271+
defaultConfigurationIsVisible = 0;
272+
defaultConfigurationName = Release;
273+
};
274+
4C93C95F128908D200FC429A /* Build configuration list for PBXAggregateTarget "Build Universal Library" */ = {
275+
isa = XCConfigurationList;
276+
buildConfigurations = (
277+
4C93C95B128908C600FC429A /* Debug */,
278+
4C93C95C128908C600FC429A /* Release */,
279+
);
280+
defaultConfigurationIsVisible = 0;
281+
defaultConfigurationName = Release;
282+
};
283+
/* End XCConfigurationList section */
284+
};
285+
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
286+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//
2+
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
3+
//
4+
5+
#ifdef __OBJC__
6+
#import <Foundation/Foundation.h>
7+
#endif
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// XCSampleClass.h
3+
// StaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@interface XCSampleClass : NSObject {
12+
13+
}
14+
15+
- (NSString*)helloString;
16+
17+
@end
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// XCSampleClass.m
3+
// StaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import "XCSampleClass.h"
10+
11+
12+
@implementation XCSampleClass
13+
14+
- (NSString*)helloString
15+
{
16+
return @"Hello World";
17+
}
18+
19+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// UniversalStaticLibraryClientAppDelegate.h
3+
// UniversalStaticLibraryClient
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/09.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class UniversalStaticLibraryClientViewController;
12+
13+
@interface UniversalStaticLibraryClientAppDelegate : NSObject <UIApplicationDelegate> {
14+
UIWindow *window;
15+
UniversalStaticLibraryClientViewController *viewController;
16+
}
17+
18+
@property (nonatomic, retain) IBOutlet UIWindow *window;
19+
@property (nonatomic, retain) IBOutlet UniversalStaticLibraryClientViewController *viewController;
20+
21+
@end
22+

0 commit comments

Comments
 (0)