Browse Source

macOS setup

Hongtae Kim 8 years ago
parent
commit
3c64648281

+ 269
- 0
TestApp1.xcodeproj/project.pbxproj View File

@@ -0,0 +1,269 @@
1
+// !$*UTF8*$!
2
+{
3
+	archiveVersion = 1;
4
+	classes = {
5
+	};
6
+	objectVersion = 46;
7
+	objects = {
8
+
9
+/* Begin PBXBuildFile section */
10
+		844A9A4C1DD0BCFD007DCC89 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 844A9A4B1DD0BCFD007DCC89 /* main.cpp */; };
11
+		844A9A4E1DD0BCFD007DCC89 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 844A9A4D1DD0BCFD007DCC89 /* Assets.xcassets */; };
12
+/* End PBXBuildFile section */
13
+
14
+/* Begin PBXFileReference section */
15
+		844A9A441DD0BCFD007DCC89 /* TestApp1.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestApp1.app; sourceTree = BUILT_PRODUCTS_DIR; };
16
+		844A9A4B1DD0BCFD007DCC89 /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
17
+		844A9A4D1DD0BCFD007DCC89 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
18
+		844A9A521DD0BCFD007DCC89 /* macOS-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "macOS-Info.plist"; sourceTree = "<group>"; };
19
+/* End PBXFileReference section */
20
+
21
+/* Begin PBXFrameworksBuildPhase section */
22
+		844A9A411DD0BCFD007DCC89 /* Frameworks */ = {
23
+			isa = PBXFrameworksBuildPhase;
24
+			buildActionMask = 2147483647;
25
+			files = (
26
+			);
27
+			runOnlyForDeploymentPostprocessing = 0;
28
+		};
29
+/* End PBXFrameworksBuildPhase section */
30
+
31
+/* Begin PBXGroup section */
32
+		844A9A3B1DD0BCFD007DCC89 = {
33
+			isa = PBXGroup;
34
+			children = (
35
+				844A9A461DD0BCFD007DCC89 /* TestApp1 */,
36
+				844A9A451DD0BCFD007DCC89 /* Products */,
37
+			);
38
+			sourceTree = "<group>";
39
+		};
40
+		844A9A451DD0BCFD007DCC89 /* Products */ = {
41
+			isa = PBXGroup;
42
+			children = (
43
+				844A9A441DD0BCFD007DCC89 /* TestApp1.app */,
44
+			);
45
+			name = Products;
46
+			sourceTree = "<group>";
47
+		};
48
+		844A9A461DD0BCFD007DCC89 /* TestApp1 */ = {
49
+			isa = PBXGroup;
50
+			children = (
51
+				844A9A4D1DD0BCFD007DCC89 /* Assets.xcassets */,
52
+				844A9A521DD0BCFD007DCC89 /* macOS-Info.plist */,
53
+				844A9A4B1DD0BCFD007DCC89 /* main.cpp */,
54
+			);
55
+			path = TestApp1;
56
+			sourceTree = "<group>";
57
+		};
58
+/* End PBXGroup section */
59
+
60
+/* Begin PBXNativeTarget section */
61
+		844A9A431DD0BCFD007DCC89 /* TestApp1 */ = {
62
+			isa = PBXNativeTarget;
63
+			buildConfigurationList = 844A9A551DD0BCFD007DCC89 /* Build configuration list for PBXNativeTarget "TestApp1" */;
64
+			buildPhases = (
65
+				844A9A401DD0BCFD007DCC89 /* Sources */,
66
+				844A9A411DD0BCFD007DCC89 /* Frameworks */,
67
+				844A9A421DD0BCFD007DCC89 /* Resources */,
68
+			);
69
+			buildRules = (
70
+			);
71
+			dependencies = (
72
+			);
73
+			name = TestApp1;
74
+			productName = TestApp1;
75
+			productReference = 844A9A441DD0BCFD007DCC89 /* TestApp1.app */;
76
+			productType = "com.apple.product-type.application";
77
+		};
78
+/* End PBXNativeTarget section */
79
+
80
+/* Begin PBXProject section */
81
+		844A9A3C1DD0BCFD007DCC89 /* Project object */ = {
82
+			isa = PBXProject;
83
+			attributes = {
84
+				LastUpgradeCheck = 0810;
85
+				ORGANIZATIONNAME = icondb;
86
+				TargetAttributes = {
87
+					844A9A431DD0BCFD007DCC89 = {
88
+						CreatedOnToolsVersion = 8.1;
89
+						ProvisioningStyle = Automatic;
90
+					};
91
+				};
92
+			};
93
+			buildConfigurationList = 844A9A3F1DD0BCFD007DCC89 /* Build configuration list for PBXProject "TestApp1" */;
94
+			compatibilityVersion = "Xcode 3.2";
95
+			developmentRegion = English;
96
+			hasScannedForEncodings = 0;
97
+			knownRegions = (
98
+				en,
99
+				Base,
100
+			);
101
+			mainGroup = 844A9A3B1DD0BCFD007DCC89;
102
+			productRefGroup = 844A9A451DD0BCFD007DCC89 /* Products */;
103
+			projectDirPath = "";
104
+			projectRoot = "";
105
+			targets = (
106
+				844A9A431DD0BCFD007DCC89 /* TestApp1 */,
107
+			);
108
+		};
109
+/* End PBXProject section */
110
+
111
+/* Begin PBXResourcesBuildPhase section */
112
+		844A9A421DD0BCFD007DCC89 /* Resources */ = {
113
+			isa = PBXResourcesBuildPhase;
114
+			buildActionMask = 2147483647;
115
+			files = (
116
+				844A9A4E1DD0BCFD007DCC89 /* Assets.xcassets in Resources */,
117
+			);
118
+			runOnlyForDeploymentPostprocessing = 0;
119
+		};
120
+/* End PBXResourcesBuildPhase section */
121
+
122
+/* Begin PBXSourcesBuildPhase section */
123
+		844A9A401DD0BCFD007DCC89 /* Sources */ = {
124
+			isa = PBXSourcesBuildPhase;
125
+			buildActionMask = 2147483647;
126
+			files = (
127
+				844A9A4C1DD0BCFD007DCC89 /* main.cpp in Sources */,
128
+			);
129
+			runOnlyForDeploymentPostprocessing = 0;
130
+		};
131
+/* End PBXSourcesBuildPhase section */
132
+
133
+/* Begin XCBuildConfiguration section */
134
+		844A9A531DD0BCFD007DCC89 /* Debug */ = {
135
+			isa = XCBuildConfiguration;
136
+			buildSettings = {
137
+				ALWAYS_SEARCH_USER_PATHS = NO;
138
+				CLANG_ANALYZER_NONNULL = YES;
139
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140
+				CLANG_CXX_LIBRARY = "libc++";
141
+				CLANG_ENABLE_MODULES = YES;
142
+				CLANG_ENABLE_OBJC_ARC = YES;
143
+				CLANG_WARN_BOOL_CONVERSION = YES;
144
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
145
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
147
+				CLANG_WARN_EMPTY_BODY = YES;
148
+				CLANG_WARN_ENUM_CONVERSION = YES;
149
+				CLANG_WARN_INFINITE_RECURSION = YES;
150
+				CLANG_WARN_INT_CONVERSION = YES;
151
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
152
+				CLANG_WARN_SUSPICIOUS_MOVES = YES;
153
+				CLANG_WARN_UNREACHABLE_CODE = YES;
154
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
155
+				CODE_SIGN_IDENTITY = "-";
156
+				COPY_PHASE_STRIP = NO;
157
+				DEBUG_INFORMATION_FORMAT = dwarf;
158
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
159
+				ENABLE_TESTABILITY = YES;
160
+				GCC_C_LANGUAGE_STANDARD = gnu99;
161
+				GCC_DYNAMIC_NO_PIC = NO;
162
+				GCC_NO_COMMON_BLOCKS = YES;
163
+				GCC_OPTIMIZATION_LEVEL = 0;
164
+				GCC_PREPROCESSOR_DEFINITIONS = (
165
+					"DEBUG=1",
166
+					"$(inherited)",
167
+				);
168
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
169
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
170
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
171
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
172
+				GCC_WARN_UNUSED_FUNCTION = YES;
173
+				GCC_WARN_UNUSED_VARIABLE = YES;
174
+				MACOSX_DEPLOYMENT_TARGET = 10.12;
175
+				MTL_ENABLE_DEBUG_INFO = YES;
176
+				ONLY_ACTIVE_ARCH = YES;
177
+				SDKROOT = macosx;
178
+			};
179
+			name = Debug;
180
+		};
181
+		844A9A541DD0BCFD007DCC89 /* Release */ = {
182
+			isa = XCBuildConfiguration;
183
+			buildSettings = {
184
+				ALWAYS_SEARCH_USER_PATHS = NO;
185
+				CLANG_ANALYZER_NONNULL = YES;
186
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
187
+				CLANG_CXX_LIBRARY = "libc++";
188
+				CLANG_ENABLE_MODULES = YES;
189
+				CLANG_ENABLE_OBJC_ARC = YES;
190
+				CLANG_WARN_BOOL_CONVERSION = YES;
191
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
192
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
193
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
194
+				CLANG_WARN_EMPTY_BODY = YES;
195
+				CLANG_WARN_ENUM_CONVERSION = YES;
196
+				CLANG_WARN_INFINITE_RECURSION = YES;
197
+				CLANG_WARN_INT_CONVERSION = YES;
198
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
199
+				CLANG_WARN_SUSPICIOUS_MOVES = YES;
200
+				CLANG_WARN_UNREACHABLE_CODE = YES;
201
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
202
+				CODE_SIGN_IDENTITY = "-";
203
+				COPY_PHASE_STRIP = NO;
204
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
205
+				ENABLE_NS_ASSERTIONS = NO;
206
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
207
+				GCC_C_LANGUAGE_STANDARD = gnu99;
208
+				GCC_NO_COMMON_BLOCKS = YES;
209
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
211
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
212
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
213
+				GCC_WARN_UNUSED_FUNCTION = YES;
214
+				GCC_WARN_UNUSED_VARIABLE = YES;
215
+				MACOSX_DEPLOYMENT_TARGET = 10.12;
216
+				MTL_ENABLE_DEBUG_INFO = NO;
217
+				SDKROOT = macosx;
218
+			};
219
+			name = Release;
220
+		};
221
+		844A9A561DD0BCFD007DCC89 /* Debug */ = {
222
+			isa = XCBuildConfiguration;
223
+			buildSettings = {
224
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
225
+				COMBINE_HIDPI_IMAGES = YES;
226
+				INFOPLIST_FILE = "$(SRCROOT)/TestApp1/macOS-Info.plist";
227
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
228
+				PRODUCT_BUNDLE_IDENTIFIER = com.icondb.TestApp1;
229
+				PRODUCT_NAME = "$(TARGET_NAME)";
230
+			};
231
+			name = Debug;
232
+		};
233
+		844A9A571DD0BCFD007DCC89 /* Release */ = {
234
+			isa = XCBuildConfiguration;
235
+			buildSettings = {
236
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
237
+				COMBINE_HIDPI_IMAGES = YES;
238
+				INFOPLIST_FILE = "$(SRCROOT)/TestApp1/macOS-Info.plist";
239
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
240
+				PRODUCT_BUNDLE_IDENTIFIER = com.icondb.TestApp1;
241
+				PRODUCT_NAME = "$(TARGET_NAME)";
242
+			};
243
+			name = Release;
244
+		};
245
+/* End XCBuildConfiguration section */
246
+
247
+/* Begin XCConfigurationList section */
248
+		844A9A3F1DD0BCFD007DCC89 /* Build configuration list for PBXProject "TestApp1" */ = {
249
+			isa = XCConfigurationList;
250
+			buildConfigurations = (
251
+				844A9A531DD0BCFD007DCC89 /* Debug */,
252
+				844A9A541DD0BCFD007DCC89 /* Release */,
253
+			);
254
+			defaultConfigurationIsVisible = 0;
255
+			defaultConfigurationName = Release;
256
+		};
257
+		844A9A551DD0BCFD007DCC89 /* Build configuration list for PBXNativeTarget "TestApp1" */ = {
258
+			isa = XCConfigurationList;
259
+			buildConfigurations = (
260
+				844A9A561DD0BCFD007DCC89 /* Debug */,
261
+				844A9A571DD0BCFD007DCC89 /* Release */,
262
+			);
263
+			defaultConfigurationIsVisible = 0;
264
+			defaultConfigurationName = Release;
265
+		};
266
+/* End XCConfigurationList section */
267
+	};
268
+	rootObject = 844A9A3C1DD0BCFD007DCC89 /* Project object */;
269
+}

+ 58
- 0
TestApp1/Assets.xcassets/AppIcon.appiconset/Contents.json View File

@@ -0,0 +1,58 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "mac",
5
+      "size" : "16x16",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "mac",
10
+      "size" : "16x16",
11
+      "scale" : "2x"
12
+    },
13
+    {
14
+      "idiom" : "mac",
15
+      "size" : "32x32",
16
+      "scale" : "1x"
17
+    },
18
+    {
19
+      "idiom" : "mac",
20
+      "size" : "32x32",
21
+      "scale" : "2x"
22
+    },
23
+    {
24
+      "idiom" : "mac",
25
+      "size" : "128x128",
26
+      "scale" : "1x"
27
+    },
28
+    {
29
+      "idiom" : "mac",
30
+      "size" : "128x128",
31
+      "scale" : "2x"
32
+    },
33
+    {
34
+      "idiom" : "mac",
35
+      "size" : "256x256",
36
+      "scale" : "1x"
37
+    },
38
+    {
39
+      "idiom" : "mac",
40
+      "size" : "256x256",
41
+      "scale" : "2x"
42
+    },
43
+    {
44
+      "idiom" : "mac",
45
+      "size" : "512x512",
46
+      "scale" : "1x"
47
+    },
48
+    {
49
+      "idiom" : "mac",
50
+      "size" : "512x512",
51
+      "scale" : "2x"
52
+    }
53
+  ],
54
+  "info" : {
55
+    "version" : 1,
56
+    "author" : "xcode"
57
+  }
58
+}

+ 30
- 0
TestApp1/macOS-Info.plist View File

@@ -0,0 +1,30 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>CFBundleDevelopmentRegion</key>
6
+	<string>en</string>
7
+	<key>CFBundleExecutable</key>
8
+	<string>$(EXECUTABLE_NAME)</string>
9
+	<key>CFBundleIconFile</key>
10
+	<string></string>
11
+	<key>CFBundleIdentifier</key>
12
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+	<key>CFBundleInfoDictionaryVersion</key>
14
+	<string>6.0</string>
15
+	<key>CFBundleName</key>
16
+	<string>$(PRODUCT_NAME)</string>
17
+	<key>CFBundlePackageType</key>
18
+	<string>APPL</string>
19
+	<key>CFBundleShortVersionString</key>
20
+	<string>1.0</string>
21
+	<key>CFBundleVersion</key>
22
+	<string>1</string>
23
+	<key>LSMinimumSystemVersion</key>
24
+	<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
25
+	<key>NSHumanReadableCopyright</key>
26
+	<string>Copyright © 2016 icondb. All rights reserved.</string>
27
+	<key>NSPrincipalClass</key>
28
+	<string>NSApplication</string>
29
+</dict>
30
+</plist>

+ 9
- 0
TestApp1/main.cpp View File

@@ -0,0 +1,9 @@
1
+
2
+#include <stdio.h>
3
+
4
+int main(int argc, const char * argv[]) {
5
+
6
+	printf("TestApp1");
7
+
8
+	return 0;
9
+}