Skip to content

Commit febd96b

Browse files
feat: update ios example setup
1 parent d3f52e6 commit febd96b

24 files changed

+185
-34
lines changed

example/.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ migration:
1515
- platform: root
1616
create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
1717
base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
18-
- platform: android
18+
- platform: ios
1919
create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
2020
base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
2121

example/ios/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/dgph
12
*.mode1v3
23
*.mode2v3
34
*.moved-aside
@@ -18,6 +19,7 @@ Flutter/App.framework
1819
Flutter/Flutter.framework
1920
Flutter/Flutter.podspec
2021
Flutter/Generated.xcconfig
22+
Flutter/ephemeral/
2123
Flutter/app.flx
2224
Flutter/app.zip
2325
Flutter/flutter_assets/

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Flutter/Debug.xcconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
21
#include "Generated.xcconfig"

example/ios/Flutter/Release.xcconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
21
#include "Generated.xcconfig"

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 154 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,24 @@
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11+
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
1112
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1213
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
1314
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1415
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1516
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
1617
/* End PBXBuildFile section */
1718

19+
/* Begin PBXContainerItemProxy section */
20+
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
21+
isa = PBXContainerItemProxy;
22+
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
23+
proxyType = 1;
24+
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
25+
remoteInfo = Runner;
26+
};
27+
/* End PBXContainerItemProxy section */
28+
1829
/* Begin PBXCopyFilesBuildPhase section */
1930
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
2031
isa = PBXCopyFilesBuildPhase;
@@ -31,6 +42,8 @@
3142
/* Begin PBXFileReference section */
3243
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3344
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
45+
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
46+
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3447
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3548
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3649
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -55,6 +68,14 @@
5568
/* End PBXFrameworksBuildPhase section */
5669

5770
/* Begin PBXGroup section */
71+
331C8082294A63A400263BE5 /* RunnerTests */ = {
72+
isa = PBXGroup;
73+
children = (
74+
331C807B294A618700263BE5 /* RunnerTests.swift */,
75+
);
76+
path = RunnerTests;
77+
sourceTree = "<group>";
78+
};
5879
9740EEB11CF90186004384FC /* Flutter */ = {
5980
isa = PBXGroup;
6081
children = (
@@ -72,13 +93,15 @@
7293
9740EEB11CF90186004384FC /* Flutter */,
7394
97C146F01CF9000F007C117D /* Runner */,
7495
97C146EF1CF9000F007C117D /* Products */,
96+
331C8082294A63A400263BE5 /* RunnerTests */,
7597
);
7698
sourceTree = "<group>";
7799
};
78100
97C146EF1CF9000F007C117D /* Products */ = {
79101
isa = PBXGroup;
80102
children = (
81103
97C146EE1CF9000F007C117D /* Runner.app */,
104+
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
82105
);
83106
name = Products;
84107
sourceTree = "<group>";
@@ -101,6 +124,23 @@
101124
/* End PBXGroup section */
102125

103126
/* Begin PBXNativeTarget section */
127+
331C8080294A63A400263BE5 /* RunnerTests */ = {
128+
isa = PBXNativeTarget;
129+
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
130+
buildPhases = (
131+
331C807D294A63A400263BE5 /* Sources */,
132+
331C807F294A63A400263BE5 /* Resources */,
133+
);
134+
buildRules = (
135+
);
136+
dependencies = (
137+
331C8086294A63A400263BE5 /* PBXTargetDependency */,
138+
);
139+
name = RunnerTests;
140+
productName = RunnerTests;
141+
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
142+
productType = "com.apple.product-type.bundle.unit-test";
143+
};
104144
97C146ED1CF9000F007C117D /* Runner */ = {
105145
isa = PBXNativeTarget;
106146
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
@@ -127,9 +167,14 @@
127167
97C146E61CF9000F007C117D /* Project object */ = {
128168
isa = PBXProject;
129169
attributes = {
130-
LastUpgradeCheck = 1300;
170+
BuildIndependentTargetsInParallel = YES;
171+
LastUpgradeCheck = 1510;
131172
ORGANIZATIONNAME = "";
132173
TargetAttributes = {
174+
331C8080294A63A400263BE5 = {
175+
CreatedOnToolsVersion = 14.0;
176+
TestTargetID = 97C146ED1CF9000F007C117D;
177+
};
133178
97C146ED1CF9000F007C117D = {
134179
CreatedOnToolsVersion = 7.3.1;
135180
LastSwiftMigration = 1100;
@@ -150,11 +195,19 @@
150195
projectRoot = "";
151196
targets = (
152197
97C146ED1CF9000F007C117D /* Runner */,
198+
331C8080294A63A400263BE5 /* RunnerTests */,
153199
);
154200
};
155201
/* End PBXProject section */
156202

157203
/* Begin PBXResourcesBuildPhase section */
204+
331C807F294A63A400263BE5 /* Resources */ = {
205+
isa = PBXResourcesBuildPhase;
206+
buildActionMask = 2147483647;
207+
files = (
208+
);
209+
runOnlyForDeploymentPostprocessing = 0;
210+
};
158211
97C146EC1CF9000F007C117D /* Resources */ = {
159212
isa = PBXResourcesBuildPhase;
160213
buildActionMask = 2147483647;
@@ -176,6 +229,7 @@
176229
files = (
177230
);
178231
inputPaths = (
232+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
179233
);
180234
name = "Thin Binary";
181235
outputPaths = (
@@ -202,6 +256,14 @@
202256
/* End PBXShellScriptBuildPhase section */
203257

204258
/* Begin PBXSourcesBuildPhase section */
259+
331C807D294A63A400263BE5 /* Sources */ = {
260+
isa = PBXSourcesBuildPhase;
261+
buildActionMask = 2147483647;
262+
files = (
263+
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
264+
);
265+
runOnlyForDeploymentPostprocessing = 0;
266+
};
205267
97C146EA1CF9000F007C117D /* Sources */ = {
206268
isa = PBXSourcesBuildPhase;
207269
buildActionMask = 2147483647;
@@ -213,6 +275,14 @@
213275
};
214276
/* End PBXSourcesBuildPhase section */
215277

278+
/* Begin PBXTargetDependency section */
279+
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
280+
isa = PBXTargetDependency;
281+
target = 97C146ED1CF9000F007C117D /* Runner */;
282+
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
283+
};
284+
/* End PBXTargetDependency section */
285+
216286
/* Begin PBXVariantGroup section */
217287
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
218288
isa = PBXVariantGroup;
@@ -237,6 +307,7 @@
237307
isa = XCBuildConfiguration;
238308
buildSettings = {
239309
ALWAYS_SEARCH_USER_PATHS = NO;
310+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
240311
CLANG_ANALYZER_NONNULL = YES;
241312
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
242313
CLANG_CXX_LIBRARY = "libc++";
@@ -266,6 +337,7 @@
266337
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
267338
ENABLE_NS_ASSERTIONS = NO;
268339
ENABLE_STRICT_OBJC_MSGSEND = YES;
340+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
269341
GCC_C_LANGUAGE_STANDARD = gnu99;
270342
GCC_NO_COMMON_BLOCKS = YES;
271343
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -274,7 +346,7 @@
274346
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275347
GCC_WARN_UNUSED_FUNCTION = YES;
276348
GCC_WARN_UNUSED_VARIABLE = YES;
277-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
349+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
278350
MTL_ENABLE_DEBUG_INFO = NO;
279351
SDKROOT = iphoneos;
280352
SUPPORTED_PLATFORMS = iphoneos;
@@ -292,19 +364,70 @@
292364
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
293365
ENABLE_BITCODE = NO;
294366
INFOPLIST_FILE = Runner/Info.plist;
295-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
296-
PRODUCT_BUNDLE_IDENTIFIER = dev.danvickmiller.flutterformbuilder.example;
367+
LD_RUNPATH_SEARCH_PATHS = (
368+
"$(inherited)",
369+
"@executable_path/Frameworks",
370+
);
371+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example;
297372
PRODUCT_NAME = "$(TARGET_NAME)";
298373
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
299374
SWIFT_VERSION = 5.0;
300375
VERSIONING_SYSTEM = "apple-generic";
301376
};
302377
name = Profile;
303378
};
379+
331C8088294A63A400263BE5 /* Debug */ = {
380+
isa = XCBuildConfiguration;
381+
buildSettings = {
382+
BUNDLE_LOADER = "$(TEST_HOST)";
383+
CODE_SIGN_STYLE = Automatic;
384+
CURRENT_PROJECT_VERSION = 1;
385+
GENERATE_INFOPLIST_FILE = YES;
386+
MARKETING_VERSION = 1.0;
387+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example.RunnerTests;
388+
PRODUCT_NAME = "$(TARGET_NAME)";
389+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
390+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
391+
SWIFT_VERSION = 5.0;
392+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
393+
};
394+
name = Debug;
395+
};
396+
331C8089294A63A400263BE5 /* Release */ = {
397+
isa = XCBuildConfiguration;
398+
buildSettings = {
399+
BUNDLE_LOADER = "$(TEST_HOST)";
400+
CODE_SIGN_STYLE = Automatic;
401+
CURRENT_PROJECT_VERSION = 1;
402+
GENERATE_INFOPLIST_FILE = YES;
403+
MARKETING_VERSION = 1.0;
404+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example.RunnerTests;
405+
PRODUCT_NAME = "$(TARGET_NAME)";
406+
SWIFT_VERSION = 5.0;
407+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
408+
};
409+
name = Release;
410+
};
411+
331C808A294A63A400263BE5 /* Profile */ = {
412+
isa = XCBuildConfiguration;
413+
buildSettings = {
414+
BUNDLE_LOADER = "$(TEST_HOST)";
415+
CODE_SIGN_STYLE = Automatic;
416+
CURRENT_PROJECT_VERSION = 1;
417+
GENERATE_INFOPLIST_FILE = YES;
418+
MARKETING_VERSION = 1.0;
419+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example.RunnerTests;
420+
PRODUCT_NAME = "$(TARGET_NAME)";
421+
SWIFT_VERSION = 5.0;
422+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
423+
};
424+
name = Profile;
425+
};
304426
97C147031CF9000F007C117D /* Debug */ = {
305427
isa = XCBuildConfiguration;
306428
buildSettings = {
307429
ALWAYS_SEARCH_USER_PATHS = NO;
430+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
308431
CLANG_ANALYZER_NONNULL = YES;
309432
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
310433
CLANG_CXX_LIBRARY = "libc++";
@@ -334,6 +457,7 @@
334457
DEBUG_INFORMATION_FORMAT = dwarf;
335458
ENABLE_STRICT_OBJC_MSGSEND = YES;
336459
ENABLE_TESTABILITY = YES;
460+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
337461
GCC_C_LANGUAGE_STANDARD = gnu99;
338462
GCC_DYNAMIC_NO_PIC = NO;
339463
GCC_NO_COMMON_BLOCKS = YES;
@@ -348,7 +472,7 @@
348472
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
349473
GCC_WARN_UNUSED_FUNCTION = YES;
350474
GCC_WARN_UNUSED_VARIABLE = YES;
351-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
475+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
352476
MTL_ENABLE_DEBUG_INFO = YES;
353477
ONLY_ACTIVE_ARCH = YES;
354478
SDKROOT = iphoneos;
@@ -360,6 +484,7 @@
360484
isa = XCBuildConfiguration;
361485
buildSettings = {
362486
ALWAYS_SEARCH_USER_PATHS = NO;
487+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
363488
CLANG_ANALYZER_NONNULL = YES;
364489
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
365490
CLANG_CXX_LIBRARY = "libc++";
@@ -389,6 +514,7 @@
389514
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
390515
ENABLE_NS_ASSERTIONS = NO;
391516
ENABLE_STRICT_OBJC_MSGSEND = YES;
517+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
392518
GCC_C_LANGUAGE_STANDARD = gnu99;
393519
GCC_NO_COMMON_BLOCKS = YES;
394520
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -397,11 +523,12 @@
397523
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
398524
GCC_WARN_UNUSED_FUNCTION = YES;
399525
GCC_WARN_UNUSED_VARIABLE = YES;
400-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
526+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
401527
MTL_ENABLE_DEBUG_INFO = NO;
402528
SDKROOT = iphoneos;
403529
SUPPORTED_PLATFORMS = iphoneos;
404-
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
530+
SWIFT_COMPILATION_MODE = wholemodule;
531+
SWIFT_OPTIMIZATION_LEVEL = "-O";
405532
TARGETED_DEVICE_FAMILY = "1,2";
406533
VALIDATE_PRODUCT = YES;
407534
};
@@ -416,8 +543,11 @@
416543
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
417544
ENABLE_BITCODE = NO;
418545
INFOPLIST_FILE = Runner/Info.plist;
419-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
420-
PRODUCT_BUNDLE_IDENTIFIER = dev.danvickmiller.flutterformbuilder.example;
546+
LD_RUNPATH_SEARCH_PATHS = (
547+
"$(inherited)",
548+
"@executable_path/Frameworks",
549+
);
550+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example;
421551
PRODUCT_NAME = "$(TARGET_NAME)";
422552
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
423553
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -435,8 +565,11 @@
435565
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
436566
ENABLE_BITCODE = NO;
437567
INFOPLIST_FILE = Runner/Info.plist;
438-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
439-
PRODUCT_BUNDLE_IDENTIFIER = dev.danvickmiller.flutterformbuilder.example;
568+
LD_RUNPATH_SEARCH_PATHS = (
569+
"$(inherited)",
570+
"@executable_path/Frameworks",
571+
);
572+
PRODUCT_BUNDLE_IDENTIFIER = com.flutterformbuilderecosystem.example;
440573
PRODUCT_NAME = "$(TARGET_NAME)";
441574
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
442575
SWIFT_VERSION = 5.0;
@@ -447,6 +580,16 @@
447580
/* End XCBuildConfiguration section */
448581

449582
/* Begin XCConfigurationList section */
583+
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
584+
isa = XCConfigurationList;
585+
buildConfigurations = (
586+
331C8088294A63A400263BE5 /* Debug */,
587+
331C8089294A63A400263BE5 /* Release */,
588+
331C808A294A63A400263BE5 /* Profile */,
589+
);
590+
defaultConfigurationIsVisible = 0;
591+
defaultConfigurationName = Release;
592+
};
450593
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
451594
isa = XCConfigurationList;
452595
buildConfigurations = (

0 commit comments

Comments
 (0)