Skip to content

Commit a07e552

Browse files
committed
Initial modernization of Xcode project. 10.4u SDK is gone. Deployment target is now 10.6 (minimum as of Xcode 9.4.1). Also, ditching Carbon.framework in favor of directly referencing CF and Application Services.
1 parent 86d4691 commit a07e552

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#include <Carbon/Carbon.h>
1+
#include <CoreFoundation/CoreFoundation.h>
2+
#include <ApplicationServices/ApplicationServices.h>
23
#include <sys/errno.h>
34
#include <fcntl.h>
45
#include <unistd.h>

pb.xcodeproj/project.pbxproj

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
07064EAB06F03B1F0027C06E /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07064EAA06F03B1F0027C06E /* Carbon.framework */; };
1110
079445FA0AB2D63A00EBD8D7 /* compare_argument.c in Sources */ = {isa = PBXBuildFile; fileRef = 079445F80AB2D63A00EBD8D7 /* compare_argument.c */; };
11+
312C725A25D8E85300E88EB3 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 312C725825D8E84C00E88EB3 /* ApplicationServices.framework */; };
12+
312C725B25D8E85700E88EB3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09AB6884FE841BABC02AAC07 /* CoreFoundation.framework */; };
1213
8DD76F770486A8DE00D96B5E /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* main.c */; settings = {ATTRIBUTES = (); }; };
1314
/* End PBXBuildFile section */
1415

1516
/* Begin PBXFileReference section */
16-
07064EAA06F03B1F0027C06E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
1717
079445F80AB2D63A00EBD8D7 /* compare_argument.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = compare_argument.c; sourceTree = "<group>"; };
1818
079445F90AB2D63A00EBD8D7 /* compare_argument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = compare_argument.h; sourceTree = "<group>"; };
1919
08FB7796FE84155DC02AAC07 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
2020
09AB6884FE841BABC02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; };
21+
312C725825D8E84C00E88EB3 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = System/Library/Frameworks/ApplicationServices.framework; sourceTree = SDKROOT; };
2122
8DD76F7E0486A8DE00D96B5E /* pb */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = pb; sourceTree = BUILT_PRODUCTS_DIR; };
2223
C6859E970290921104C91782 /* pb.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = pb.1; sourceTree = "<group>"; };
2324
/* End PBXFileReference section */
@@ -27,7 +28,8 @@
2728
isa = PBXFrameworksBuildPhase;
2829
buildActionMask = 2147483647;
2930
files = (
30-
07064EAB06F03B1F0027C06E /* Carbon.framework in Frameworks */,
31+
312C725B25D8E85700E88EB3 /* CoreFoundation.framework in Frameworks */,
32+
312C725A25D8E85300E88EB3 /* ApplicationServices.framework in Frameworks */,
3133
);
3234
runOnlyForDeploymentPostprocessing = 0;
3335
};
@@ -58,8 +60,8 @@
5860
08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */ = {
5961
isa = PBXGroup;
6062
children = (
61-
07064EAA06F03B1F0027C06E /* Carbon.framework */,
6263
09AB6884FE841BABC02AAC07 /* CoreFoundation.framework */,
64+
312C725825D8E84C00E88EB3 /* ApplicationServices.framework */,
6365
);
6466
name = "External Frameworks and Libraries";
6567
sourceTree = "<group>";
@@ -140,6 +142,7 @@
140142
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
141143
GCC_OPTIMIZATION_LEVEL = 0;
142144
INSTALL_PATH = "$(HOME)/bin";
145+
MACOSX_DEPLOYMENT_TARGET = 10.6;
143146
OTHER_CFLAGS = "-fconstant-cfstrings";
144147
PRODUCT_NAME = pb;
145148
ZERO_LINK = YES;
@@ -149,10 +152,6 @@
149152
07F5735A0A7EF841009C461B /* Deployment */ = {
150153
isa = XCBuildConfiguration;
151154
buildSettings = {
152-
ARCHS = (
153-
ppc,
154-
i386,
155-
);
156155
COPY_PHASE_STRIP = YES;
157156
DEAD_CODE_STRIPPING = YES;
158157
DEPLOYMENT_POSTPROCESSING = YES;
@@ -161,6 +160,7 @@
161160
GCC_ENABLE_FIX_AND_CONTINUE = NO;
162161
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
163162
INSTALL_PATH = "$(HOME)/bin";
163+
MACOSX_DEPLOYMENT_TARGET = 10.6;
164164
OTHER_CFLAGS = "-fconstant-cfstrings";
165165
PRODUCT_NAME = pb;
166166
ZERO_LINK = NO;
@@ -174,6 +174,7 @@
174174
GCC_DYNAMIC_NO_PIC = YES;
175175
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
176176
INSTALL_PATH = "$(HOME)/bin";
177+
MACOSX_DEPLOYMENT_TARGET = 10.6;
177178
OTHER_CFLAGS = "-fconstant-cfstrings";
178179
PRODUCT_NAME = pb;
179180
};
@@ -183,21 +184,18 @@
183184
isa = XCBuildConfiguration;
184185
buildSettings = {
185186
GCC_C_LANGUAGE_STANDARD = c99;
186-
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
187187
};
188188
name = Development;
189189
};
190190
07F5735E0A7EF841009C461B /* Deployment */ = {
191191
isa = XCBuildConfiguration;
192192
buildSettings = {
193-
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
194193
};
195194
name = Deployment;
196195
};
197196
07F5735F0A7EF841009C461B /* Default */ = {
198197
isa = XCBuildConfiguration;
199198
buildSettings = {
200-
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
201199
};
202200
name = Default;
203201
};

0 commit comments

Comments
 (0)