Skip to content

Commit 62254aa

Browse files
chore(ios): Add SPM native iOS portion
1 parent 5288f45 commit 62254aa

File tree

19 files changed

+649
-0
lines changed

19 files changed

+649
-0
lines changed

example-app-spm/ios/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
App/build
2+
App/Pods
3+
App/output
4+
App/App/public
5+
DerivedData
6+
xcuserdata
7+
8+
# Cordova plugins for Capacitor
9+
capacitor-cordova-ios-plugins
10+
11+
# Generated Config files
12+
App/App/capacitor.config.json
13+
App/App/config.xml
Lines changed: 376 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,376 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 60;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
11+
4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */ = {isa = PBXBuildFile; productRef = 4D22ABE82AF431CB00220026 /* CapApp-SPM */; };
12+
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
13+
504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
14+
504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
15+
504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
16+
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
17+
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
18+
/* End PBXBuildFile section */
19+
20+
/* Begin PBXFileReference section */
21+
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
22+
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
23+
504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
24+
504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
25+
504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
26+
504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
27+
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
28+
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
29+
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
30+
958DCC722DB07C7200EA8C5F /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = ../debug.xcconfig; sourceTree = SOURCE_ROOT; };
31+
/* End PBXFileReference section */
32+
33+
/* Begin PBXFrameworksBuildPhase section */
34+
504EC3011FED79650016851F /* Frameworks */ = {
35+
isa = PBXFrameworksBuildPhase;
36+
buildActionMask = 2147483647;
37+
files = (
38+
4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */,
39+
);
40+
runOnlyForDeploymentPostprocessing = 0;
41+
};
42+
/* End PBXFrameworksBuildPhase section */
43+
44+
/* Begin PBXGroup section */
45+
504EC2FB1FED79650016851F = {
46+
isa = PBXGroup;
47+
children = (
48+
958DCC722DB07C7200EA8C5F /* debug.xcconfig */,
49+
504EC3061FED79650016851F /* App */,
50+
504EC3051FED79650016851F /* Products */,
51+
);
52+
sourceTree = "<group>";
53+
};
54+
504EC3051FED79650016851F /* Products */ = {
55+
isa = PBXGroup;
56+
children = (
57+
504EC3041FED79650016851F /* App.app */,
58+
);
59+
name = Products;
60+
sourceTree = "<group>";
61+
};
62+
504EC3061FED79650016851F /* App */ = {
63+
isa = PBXGroup;
64+
children = (
65+
50379B222058CBB4000EE86E /* capacitor.config.json */,
66+
504EC3071FED79650016851F /* AppDelegate.swift */,
67+
504EC30B1FED79650016851F /* Main.storyboard */,
68+
504EC30E1FED79650016851F /* Assets.xcassets */,
69+
504EC3101FED79650016851F /* LaunchScreen.storyboard */,
70+
504EC3131FED79650016851F /* Info.plist */,
71+
2FAD9762203C412B000D30F8 /* config.xml */,
72+
50B271D01FEDC1A000F3C39B /* public */,
73+
);
74+
path = App;
75+
sourceTree = "<group>";
76+
};
77+
/* End PBXGroup section */
78+
79+
/* Begin PBXNativeTarget section */
80+
504EC3031FED79650016851F /* App */ = {
81+
isa = PBXNativeTarget;
82+
buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
83+
buildPhases = (
84+
504EC3001FED79650016851F /* Sources */,
85+
504EC3011FED79650016851F /* Frameworks */,
86+
504EC3021FED79650016851F /* Resources */,
87+
);
88+
buildRules = (
89+
);
90+
dependencies = (
91+
);
92+
name = App;
93+
packageProductDependencies = (
94+
4D22ABE82AF431CB00220026 /* CapApp-SPM */,
95+
);
96+
productName = App;
97+
productReference = 504EC3041FED79650016851F /* App.app */;
98+
productType = "com.apple.product-type.application";
99+
};
100+
/* End PBXNativeTarget section */
101+
102+
/* Begin PBXProject section */
103+
504EC2FC1FED79650016851F /* Project object */ = {
104+
isa = PBXProject;
105+
attributes = {
106+
LastSwiftUpdateCheck = 0920;
107+
LastUpgradeCheck = 0920;
108+
TargetAttributes = {
109+
504EC3031FED79650016851F = {
110+
CreatedOnToolsVersion = 9.2;
111+
LastSwiftMigration = 1100;
112+
ProvisioningStyle = Automatic;
113+
};
114+
};
115+
};
116+
buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
117+
compatibilityVersion = "Xcode 8.0";
118+
developmentRegion = en;
119+
hasScannedForEncodings = 0;
120+
knownRegions = (
121+
en,
122+
Base,
123+
);
124+
mainGroup = 504EC2FB1FED79650016851F;
125+
packageReferences = (
126+
D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */,
127+
);
128+
productRefGroup = 504EC3051FED79650016851F /* Products */;
129+
projectDirPath = "";
130+
projectRoot = "";
131+
targets = (
132+
504EC3031FED79650016851F /* App */,
133+
);
134+
};
135+
/* End PBXProject section */
136+
137+
/* Begin PBXResourcesBuildPhase section */
138+
504EC3021FED79650016851F /* Resources */ = {
139+
isa = PBXResourcesBuildPhase;
140+
buildActionMask = 2147483647;
141+
files = (
142+
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
143+
50B271D11FEDC1A000F3C39B /* public in Resources */,
144+
504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
145+
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
146+
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
147+
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
148+
);
149+
runOnlyForDeploymentPostprocessing = 0;
150+
};
151+
/* End PBXResourcesBuildPhase section */
152+
153+
/* Begin PBXSourcesBuildPhase section */
154+
504EC3001FED79650016851F /* Sources */ = {
155+
isa = PBXSourcesBuildPhase;
156+
buildActionMask = 2147483647;
157+
files = (
158+
504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
159+
);
160+
runOnlyForDeploymentPostprocessing = 0;
161+
};
162+
/* End PBXSourcesBuildPhase section */
163+
164+
/* Begin PBXVariantGroup section */
165+
504EC30B1FED79650016851F /* Main.storyboard */ = {
166+
isa = PBXVariantGroup;
167+
children = (
168+
504EC30C1FED79650016851F /* Base */,
169+
);
170+
name = Main.storyboard;
171+
sourceTree = "<group>";
172+
};
173+
504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
174+
isa = PBXVariantGroup;
175+
children = (
176+
504EC3111FED79650016851F /* Base */,
177+
);
178+
name = LaunchScreen.storyboard;
179+
sourceTree = "<group>";
180+
};
181+
/* End PBXVariantGroup section */
182+
183+
/* Begin XCBuildConfiguration section */
184+
504EC3141FED79650016851F /* Debug */ = {
185+
isa = XCBuildConfiguration;
186+
baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
187+
buildSettings = {
188+
ALWAYS_SEARCH_USER_PATHS = NO;
189+
CLANG_ANALYZER_NONNULL = YES;
190+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
191+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
192+
CLANG_CXX_LIBRARY = "libc++";
193+
CLANG_ENABLE_MODULES = YES;
194+
CLANG_ENABLE_OBJC_ARC = YES;
195+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
196+
CLANG_WARN_BOOL_CONVERSION = YES;
197+
CLANG_WARN_COMMA = YES;
198+
CLANG_WARN_CONSTANT_CONVERSION = YES;
199+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
200+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
201+
CLANG_WARN_EMPTY_BODY = YES;
202+
CLANG_WARN_ENUM_CONVERSION = YES;
203+
CLANG_WARN_INFINITE_RECURSION = YES;
204+
CLANG_WARN_INT_CONVERSION = YES;
205+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
206+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
207+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
208+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
209+
CLANG_WARN_STRICT_PROTOTYPES = YES;
210+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
211+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
212+
CLANG_WARN_UNREACHABLE_CODE = YES;
213+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
214+
CODE_SIGN_IDENTITY = "iPhone Developer";
215+
COPY_PHASE_STRIP = NO;
216+
DEBUG_INFORMATION_FORMAT = dwarf;
217+
ENABLE_STRICT_OBJC_MSGSEND = YES;
218+
ENABLE_TESTABILITY = YES;
219+
GCC_C_LANGUAGE_STANDARD = gnu11;
220+
GCC_DYNAMIC_NO_PIC = NO;
221+
GCC_NO_COMMON_BLOCKS = YES;
222+
GCC_OPTIMIZATION_LEVEL = 0;
223+
GCC_PREPROCESSOR_DEFINITIONS = (
224+
"DEBUG=1",
225+
"$(inherited)",
226+
);
227+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
228+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
229+
GCC_WARN_UNDECLARED_SELECTOR = YES;
230+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
231+
GCC_WARN_UNUSED_FUNCTION = YES;
232+
GCC_WARN_UNUSED_VARIABLE = YES;
233+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
234+
MTL_ENABLE_DEBUG_INFO = YES;
235+
ONLY_ACTIVE_ARCH = YES;
236+
SDKROOT = iphoneos;
237+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
238+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
239+
};
240+
name = Debug;
241+
};
242+
504EC3151FED79650016851F /* Release */ = {
243+
isa = XCBuildConfiguration;
244+
buildSettings = {
245+
ALWAYS_SEARCH_USER_PATHS = NO;
246+
CLANG_ANALYZER_NONNULL = YES;
247+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
248+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
249+
CLANG_CXX_LIBRARY = "libc++";
250+
CLANG_ENABLE_MODULES = YES;
251+
CLANG_ENABLE_OBJC_ARC = YES;
252+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
253+
CLANG_WARN_BOOL_CONVERSION = YES;
254+
CLANG_WARN_COMMA = YES;
255+
CLANG_WARN_CONSTANT_CONVERSION = YES;
256+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
257+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
258+
CLANG_WARN_EMPTY_BODY = YES;
259+
CLANG_WARN_ENUM_CONVERSION = YES;
260+
CLANG_WARN_INFINITE_RECURSION = YES;
261+
CLANG_WARN_INT_CONVERSION = YES;
262+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
263+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
264+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
265+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
266+
CLANG_WARN_STRICT_PROTOTYPES = YES;
267+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
268+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
269+
CLANG_WARN_UNREACHABLE_CODE = YES;
270+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271+
CODE_SIGN_IDENTITY = "iPhone Developer";
272+
COPY_PHASE_STRIP = NO;
273+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
274+
ENABLE_NS_ASSERTIONS = NO;
275+
ENABLE_STRICT_OBJC_MSGSEND = YES;
276+
GCC_C_LANGUAGE_STANDARD = gnu11;
277+
GCC_NO_COMMON_BLOCKS = YES;
278+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
279+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
280+
GCC_WARN_UNDECLARED_SELECTOR = YES;
281+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282+
GCC_WARN_UNUSED_FUNCTION = YES;
283+
GCC_WARN_UNUSED_VARIABLE = YES;
284+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
285+
MTL_ENABLE_DEBUG_INFO = NO;
286+
SDKROOT = iphoneos;
287+
SWIFT_COMPILATION_MODE = wholemodule;
288+
SWIFT_OPTIMIZATION_LEVEL = "-O";
289+
VALIDATE_PRODUCT = YES;
290+
};
291+
name = Release;
292+
};
293+
504EC3171FED79650016851F /* Debug */ = {
294+
isa = XCBuildConfiguration;
295+
baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
296+
buildSettings = {
297+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
298+
CODE_SIGN_STYLE = Automatic;
299+
CURRENT_PROJECT_VERSION = 1;
300+
INFOPLIST_FILE = App/Info.plist;
301+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
302+
LD_RUNPATH_SEARCH_PATHS = (
303+
"$(inherited)",
304+
"@executable_path/Frameworks",
305+
);
306+
MARKETING_VERSION = 1.0;
307+
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
308+
PRODUCT_BUNDLE_IDENTIFIER = com.capacitorjs.maps_spm;
309+
PRODUCT_NAME = "$(TARGET_NAME)";
310+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
311+
SWIFT_VERSION = 5.0;
312+
TARGETED_DEVICE_FAMILY = "1,2";
313+
};
314+
name = Debug;
315+
};
316+
504EC3181FED79650016851F /* Release */ = {
317+
isa = XCBuildConfiguration;
318+
buildSettings = {
319+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
320+
CODE_SIGN_STYLE = Automatic;
321+
CURRENT_PROJECT_VERSION = 1;
322+
INFOPLIST_FILE = App/Info.plist;
323+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
324+
LD_RUNPATH_SEARCH_PATHS = (
325+
"$(inherited)",
326+
"@executable_path/Frameworks",
327+
);
328+
MARKETING_VERSION = 1.0;
329+
PRODUCT_BUNDLE_IDENTIFIER = com.capacitorjs.maps_spm;
330+
PRODUCT_NAME = "$(TARGET_NAME)";
331+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
332+
SWIFT_VERSION = 5.0;
333+
TARGETED_DEVICE_FAMILY = "1,2";
334+
};
335+
name = Release;
336+
};
337+
/* End XCBuildConfiguration section */
338+
339+
/* Begin XCConfigurationList section */
340+
504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
341+
isa = XCConfigurationList;
342+
buildConfigurations = (
343+
504EC3141FED79650016851F /* Debug */,
344+
504EC3151FED79650016851F /* Release */,
345+
);
346+
defaultConfigurationIsVisible = 0;
347+
defaultConfigurationName = Release;
348+
};
349+
504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
350+
isa = XCConfigurationList;
351+
buildConfigurations = (
352+
504EC3171FED79650016851F /* Debug */,
353+
504EC3181FED79650016851F /* Release */,
354+
);
355+
defaultConfigurationIsVisible = 0;
356+
defaultConfigurationName = Release;
357+
};
358+
/* End XCConfigurationList section */
359+
360+
/* Begin XCLocalSwiftPackageReference section */
361+
D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */ = {
362+
isa = XCLocalSwiftPackageReference;
363+
relativePath = "CapApp-SPM";
364+
};
365+
/* End XCLocalSwiftPackageReference section */
366+
367+
/* Begin XCSwiftPackageProductDependency section */
368+
4D22ABE82AF431CB00220026 /* CapApp-SPM */ = {
369+
isa = XCSwiftPackageProductDependency;
370+
package = D4C12C0A2AAA248700AAC8A2 /* XCLocalSwiftPackageReference "CapApp-SPM" */;
371+
productName = "CapApp-SPM";
372+
};
373+
/* End XCSwiftPackageProductDependency section */
374+
};
375+
rootObject = 504EC2FC1FED79650016851F /* Project object */;
376+
}
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>

0 commit comments

Comments
 (0)