Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 084acd7

Browse files
committed
Infer WatchKit target #15
1 parent c62839f commit 084acd7

File tree

11 files changed

+444
-1
lines changed

11 files changed

+444
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Removed unused config `editor.quickSuggestions`
66
* Will no longer write `sde.buildOnSave` or `editor.quickSuggestions` to workspace settings
77
* `#` will now trigger completions
8-
* `-target` will now be detected for `UIKit`, `AppKit` on macOS and linux
8+
* `-target` will now be detected for `UIKit`, `AppKit`, `WatchKit` and `Foundation` on macOS and linux
99
* Index all swift files together when no `Package.swift` defined #14
1010

1111
## 2.3.0

projects/.DS_Store

6 KB
Binary file not shown.
Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
BA254344208877E20028156A /* Watch.h in Headers */ = {isa = PBXBuildFile; fileRef = BA254342208877E20028156A /* Watch.h */; settings = {ATTRIBUTES = (Public, ); }; };
11+
BA25434B208877F70028156A /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA25434A208877F70028156A /* InterfaceController.swift */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXFileReference section */
15+
BA25433F208877E20028156A /* Watch.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Watch.framework; sourceTree = BUILT_PRODUCTS_DIR; };
16+
BA254342208877E20028156A /* Watch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Watch.h; sourceTree = "<group>"; };
17+
BA254343208877E20028156A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
18+
BA25434A208877F70028156A /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = "<group>"; };
19+
/* End PBXFileReference section */
20+
21+
/* Begin PBXFrameworksBuildPhase section */
22+
BA25433B208877E20028156A /* Frameworks */ = {
23+
isa = PBXFrameworksBuildPhase;
24+
buildActionMask = 2147483647;
25+
files = (
26+
);
27+
runOnlyForDeploymentPostprocessing = 0;
28+
};
29+
/* End PBXFrameworksBuildPhase section */
30+
31+
/* Begin PBXGroup section */
32+
BA254335208877E20028156A = {
33+
isa = PBXGroup;
34+
children = (
35+
BA254341208877E20028156A /* Watch */,
36+
BA254340208877E20028156A /* Products */,
37+
);
38+
sourceTree = "<group>";
39+
};
40+
BA254340208877E20028156A /* Products */ = {
41+
isa = PBXGroup;
42+
children = (
43+
BA25433F208877E20028156A /* Watch.framework */,
44+
);
45+
name = Products;
46+
sourceTree = "<group>";
47+
};
48+
BA254341208877E20028156A /* Watch */ = {
49+
isa = PBXGroup;
50+
children = (
51+
BA254342208877E20028156A /* Watch.h */,
52+
BA254343208877E20028156A /* Info.plist */,
53+
BA25434A208877F70028156A /* InterfaceController.swift */,
54+
);
55+
path = Watch;
56+
sourceTree = "<group>";
57+
};
58+
/* End PBXGroup section */
59+
60+
/* Begin PBXHeadersBuildPhase section */
61+
BA25433C208877E20028156A /* Headers */ = {
62+
isa = PBXHeadersBuildPhase;
63+
buildActionMask = 2147483647;
64+
files = (
65+
BA254344208877E20028156A /* Watch.h in Headers */,
66+
);
67+
runOnlyForDeploymentPostprocessing = 0;
68+
};
69+
/* End PBXHeadersBuildPhase section */
70+
71+
/* Begin PBXNativeTarget section */
72+
BA25433E208877E20028156A /* Watch */ = {
73+
isa = PBXNativeTarget;
74+
buildConfigurationList = BA254347208877E20028156A /* Build configuration list for PBXNativeTarget "Watch" */;
75+
buildPhases = (
76+
BA25433A208877E20028156A /* Sources */,
77+
BA25433B208877E20028156A /* Frameworks */,
78+
BA25433C208877E20028156A /* Headers */,
79+
BA25433D208877E20028156A /* Resources */,
80+
);
81+
buildRules = (
82+
);
83+
dependencies = (
84+
);
85+
name = Watch;
86+
productName = Watch;
87+
productReference = BA25433F208877E20028156A /* Watch.framework */;
88+
productType = "com.apple.product-type.framework";
89+
};
90+
/* End PBXNativeTarget section */
91+
92+
/* Begin PBXProject section */
93+
BA254336208877E20028156A /* Project object */ = {
94+
isa = PBXProject;
95+
attributes = {
96+
LastUpgradeCheck = 0930;
97+
ORGANIZATIONNAME = "Valentin Knabel";
98+
TargetAttributes = {
99+
BA25433E208877E20028156A = {
100+
CreatedOnToolsVersion = 9.3;
101+
LastSwiftMigration = 0930;
102+
};
103+
};
104+
};
105+
buildConfigurationList = BA254339208877E20028156A /* Build configuration list for PBXProject "Watch" */;
106+
compatibilityVersion = "Xcode 9.3";
107+
developmentRegion = en;
108+
hasScannedForEncodings = 0;
109+
knownRegions = (
110+
en,
111+
);
112+
mainGroup = BA254335208877E20028156A;
113+
productRefGroup = BA254340208877E20028156A /* Products */;
114+
projectDirPath = "";
115+
projectRoot = "";
116+
targets = (
117+
BA25433E208877E20028156A /* Watch */,
118+
);
119+
};
120+
/* End PBXProject section */
121+
122+
/* Begin PBXResourcesBuildPhase section */
123+
BA25433D208877E20028156A /* Resources */ = {
124+
isa = PBXResourcesBuildPhase;
125+
buildActionMask = 2147483647;
126+
files = (
127+
);
128+
runOnlyForDeploymentPostprocessing = 0;
129+
};
130+
/* End PBXResourcesBuildPhase section */
131+
132+
/* Begin PBXSourcesBuildPhase section */
133+
BA25433A208877E20028156A /* Sources */ = {
134+
isa = PBXSourcesBuildPhase;
135+
buildActionMask = 2147483647;
136+
files = (
137+
BA25434B208877F70028156A /* InterfaceController.swift in Sources */,
138+
);
139+
runOnlyForDeploymentPostprocessing = 0;
140+
};
141+
/* End PBXSourcesBuildPhase section */
142+
143+
/* Begin XCBuildConfiguration section */
144+
BA254345208877E20028156A /* Debug */ = {
145+
isa = XCBuildConfiguration;
146+
buildSettings = {
147+
ALWAYS_SEARCH_USER_PATHS = NO;
148+
CLANG_ANALYZER_NONNULL = YES;
149+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
150+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
151+
CLANG_CXX_LIBRARY = "libc++";
152+
CLANG_ENABLE_MODULES = YES;
153+
CLANG_ENABLE_OBJC_ARC = YES;
154+
CLANG_ENABLE_OBJC_WEAK = YES;
155+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
156+
CLANG_WARN_BOOL_CONVERSION = YES;
157+
CLANG_WARN_COMMA = YES;
158+
CLANG_WARN_CONSTANT_CONVERSION = YES;
159+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
160+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
161+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
162+
CLANG_WARN_EMPTY_BODY = YES;
163+
CLANG_WARN_ENUM_CONVERSION = YES;
164+
CLANG_WARN_INFINITE_RECURSION = YES;
165+
CLANG_WARN_INT_CONVERSION = YES;
166+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
167+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
168+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
169+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
170+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
171+
CLANG_WARN_STRICT_PROTOTYPES = YES;
172+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
173+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
174+
CLANG_WARN_UNREACHABLE_CODE = YES;
175+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
176+
COPY_PHASE_STRIP = NO;
177+
CURRENT_PROJECT_VERSION = 1;
178+
DEBUG_INFORMATION_FORMAT = dwarf;
179+
ENABLE_STRICT_OBJC_MSGSEND = YES;
180+
ENABLE_TESTABILITY = YES;
181+
GCC_C_LANGUAGE_STANDARD = gnu11;
182+
GCC_DYNAMIC_NO_PIC = NO;
183+
GCC_NO_COMMON_BLOCKS = YES;
184+
GCC_OPTIMIZATION_LEVEL = 0;
185+
GCC_PREPROCESSOR_DEFINITIONS = (
186+
"DEBUG=1",
187+
"$(inherited)",
188+
);
189+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
190+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
191+
GCC_WARN_UNDECLARED_SELECTOR = YES;
192+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
193+
GCC_WARN_UNUSED_FUNCTION = YES;
194+
GCC_WARN_UNUSED_VARIABLE = YES;
195+
MTL_ENABLE_DEBUG_INFO = YES;
196+
ONLY_ACTIVE_ARCH = YES;
197+
SDKROOT = watchos;
198+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
199+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
200+
VERSIONING_SYSTEM = "apple-generic";
201+
VERSION_INFO_PREFIX = "";
202+
WATCHOS_DEPLOYMENT_TARGET = 4.3;
203+
};
204+
name = Debug;
205+
};
206+
BA254346208877E20028156A /* Release */ = {
207+
isa = XCBuildConfiguration;
208+
buildSettings = {
209+
ALWAYS_SEARCH_USER_PATHS = NO;
210+
CLANG_ANALYZER_NONNULL = YES;
211+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
212+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
213+
CLANG_CXX_LIBRARY = "libc++";
214+
CLANG_ENABLE_MODULES = YES;
215+
CLANG_ENABLE_OBJC_ARC = YES;
216+
CLANG_ENABLE_OBJC_WEAK = YES;
217+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
218+
CLANG_WARN_BOOL_CONVERSION = YES;
219+
CLANG_WARN_COMMA = YES;
220+
CLANG_WARN_CONSTANT_CONVERSION = YES;
221+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
222+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
223+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
224+
CLANG_WARN_EMPTY_BODY = YES;
225+
CLANG_WARN_ENUM_CONVERSION = YES;
226+
CLANG_WARN_INFINITE_RECURSION = YES;
227+
CLANG_WARN_INT_CONVERSION = YES;
228+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
229+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
230+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
231+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
232+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
233+
CLANG_WARN_STRICT_PROTOTYPES = YES;
234+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
235+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
236+
CLANG_WARN_UNREACHABLE_CODE = YES;
237+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
238+
COPY_PHASE_STRIP = NO;
239+
CURRENT_PROJECT_VERSION = 1;
240+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
241+
ENABLE_NS_ASSERTIONS = NO;
242+
ENABLE_STRICT_OBJC_MSGSEND = YES;
243+
GCC_C_LANGUAGE_STANDARD = gnu11;
244+
GCC_NO_COMMON_BLOCKS = YES;
245+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
246+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
247+
GCC_WARN_UNDECLARED_SELECTOR = YES;
248+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
249+
GCC_WARN_UNUSED_FUNCTION = YES;
250+
GCC_WARN_UNUSED_VARIABLE = YES;
251+
MTL_ENABLE_DEBUG_INFO = NO;
252+
SDKROOT = watchos;
253+
SWIFT_COMPILATION_MODE = wholemodule;
254+
SWIFT_OPTIMIZATION_LEVEL = "-O";
255+
VALIDATE_PRODUCT = YES;
256+
VERSIONING_SYSTEM = "apple-generic";
257+
VERSION_INFO_PREFIX = "";
258+
WATCHOS_DEPLOYMENT_TARGET = 4.3;
259+
};
260+
name = Release;
261+
};
262+
BA254348208877E20028156A /* Debug */ = {
263+
isa = XCBuildConfiguration;
264+
buildSettings = {
265+
APPLICATION_EXTENSION_API_ONLY = YES;
266+
CLANG_ENABLE_MODULES = YES;
267+
CODE_SIGN_IDENTITY = "";
268+
CODE_SIGN_STYLE = Automatic;
269+
DEFINES_MODULE = YES;
270+
DYLIB_COMPATIBILITY_VERSION = 1;
271+
DYLIB_CURRENT_VERSION = 1;
272+
DYLIB_INSTALL_NAME_BASE = "@rpath";
273+
INFOPLIST_FILE = Watch/Info.plist;
274+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
275+
LD_RUNPATH_SEARCH_PATHS = (
276+
"$(inherited)",
277+
"@executable_path/Frameworks",
278+
"@loader_path/Frameworks",
279+
);
280+
PRODUCT_BUNDLE_IDENTIFIER = com.vknabel.Watch;
281+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
282+
SKIP_INSTALL = YES;
283+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
284+
SWIFT_VERSION = 4.0;
285+
TARGETED_DEVICE_FAMILY = 4;
286+
};
287+
name = Debug;
288+
};
289+
BA254349208877E20028156A /* Release */ = {
290+
isa = XCBuildConfiguration;
291+
buildSettings = {
292+
APPLICATION_EXTENSION_API_ONLY = YES;
293+
CLANG_ENABLE_MODULES = YES;
294+
CODE_SIGN_IDENTITY = "";
295+
CODE_SIGN_STYLE = Automatic;
296+
DEFINES_MODULE = YES;
297+
DYLIB_COMPATIBILITY_VERSION = 1;
298+
DYLIB_CURRENT_VERSION = 1;
299+
DYLIB_INSTALL_NAME_BASE = "@rpath";
300+
INFOPLIST_FILE = Watch/Info.plist;
301+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
302+
LD_RUNPATH_SEARCH_PATHS = (
303+
"$(inherited)",
304+
"@executable_path/Frameworks",
305+
"@loader_path/Frameworks",
306+
);
307+
PRODUCT_BUNDLE_IDENTIFIER = com.vknabel.Watch;
308+
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
309+
SKIP_INSTALL = YES;
310+
SWIFT_VERSION = 4.0;
311+
TARGETED_DEVICE_FAMILY = 4;
312+
};
313+
name = Release;
314+
};
315+
/* End XCBuildConfiguration section */
316+
317+
/* Begin XCConfigurationList section */
318+
BA254339208877E20028156A /* Build configuration list for PBXProject "Watch" */ = {
319+
isa = XCConfigurationList;
320+
buildConfigurations = (
321+
BA254345208877E20028156A /* Debug */,
322+
BA254346208877E20028156A /* Release */,
323+
);
324+
defaultConfigurationIsVisible = 0;
325+
defaultConfigurationName = Release;
326+
};
327+
BA254347208877E20028156A /* Build configuration list for PBXNativeTarget "Watch" */ = {
328+
isa = XCConfigurationList;
329+
buildConfigurations = (
330+
BA254348208877E20028156A /* Debug */,
331+
BA254349208877E20028156A /* Release */,
332+
);
333+
defaultConfigurationIsVisible = 0;
334+
defaultConfigurationName = Release;
335+
};
336+
/* End XCConfigurationList section */
337+
};
338+
rootObject = BA254336208877E20028156A /* Project object */;
339+
}

projects/Watch/Watch.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>SchemeUserState</key>
6+
<dict>
7+
<key>Watch.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>

0 commit comments

Comments
 (0)