Skip to content

Commit 814c26f

Browse files
committed
iOS build fixes
1 parent 8b99a0e commit 814c26f

File tree

3 files changed

+36
-28
lines changed

3 files changed

+36
-28
lines changed

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>

ios/Podfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -36,6 +36,11 @@ end
3636

3737
post_install do |installer|
3838
installer.pods_project.targets.each do |target|
39+
target.build_configurations.each do |config|
40+
# Set the deployment target
41+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
42+
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
43+
end
3944
flutter_additional_ios_build_settings(target)
4045
end
41-
end
46+
end

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11+
316E178F07EC2BC86B944736 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A32196AD03E84FB2BF8DB09 /* Pods_Runner.framework */; };
1112
39167EB922218469008D1855 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 39167EAD22218468008D1855 /* [email protected] */; };
1213
39167EBB22218469008D1855 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 39167EAF22218468008D1855 /* [email protected] */; };
1314
39167EBD22218469008D1855 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 39167EB122218469008D1855 /* [email protected] */; };
@@ -35,7 +36,6 @@
3536
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
3637
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
3738
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
38-
CBAA1349404142D77C1C792C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DF78FC2E6B52C611A2470FD3 /* Pods_Runner.framework */; };
3939
/* End PBXBuildFile section */
4040

4141
/* Begin PBXCopyFilesBuildPhase section */
@@ -70,7 +70,7 @@
7070
39A26A7026D5621D00977C6C /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
7171
39A26A7126D5621E00977C6C /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
7272
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
73-
552E09CE27D49778F805B244 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
73+
5A32196AD03E84FB2BF8DB09 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7474
766334D522C3E7DC008DDB1D /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
7575
766334D622C3E7DC008DDB1D /* empty.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = empty.swift; sourceTree = "<group>"; };
7676
766B58A8221AFEB4009C8264 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
@@ -80,6 +80,7 @@
8080
76E821F121F6556B00B97509 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
8181
76E821F421FB9FDD00B97509 /* Runner.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = Runner.xcodeproj; sourceTree = SOURCE_ROOT; };
8282
76E821F721FB9FE700B97509 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = SOURCE_ROOT; };
83+
7861206952BB60B167B696C0 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
8384
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
8485
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
8586
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -91,31 +92,30 @@
9192
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9293
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9394
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
94-
B82F33375CA1C21771A193A8 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
95-
DA5E51DC822BDDE21B01981B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
96-
DF78FC2E6B52C611A2470FD3 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
95+
A410C793C7B93DCBB45D9EB4 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
96+
D95055A9C1234ED514595993 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
9797
/* End PBXFileReference section */
9898

9999
/* Begin PBXFrameworksBuildPhase section */
100100
97C146EB1CF9000F007C117D /* Frameworks */ = {
101101
isa = PBXFrameworksBuildPhase;
102102
buildActionMask = 2147483647;
103103
files = (
104-
CBAA1349404142D77C1C792C /* Pods_Runner.framework in Frameworks */,
104+
316E178F07EC2BC86B944736 /* Pods_Runner.framework in Frameworks */,
105105
);
106106
runOnlyForDeploymentPostprocessing = 0;
107107
};
108108
/* End PBXFrameworksBuildPhase section */
109109

110110
/* Begin PBXGroup section */
111-
4D5DBC2F2D9B3780C0E34E70 /* Pods */ = {
111+
3A53BCD3EB59ED7D1287C855 /* Pods */ = {
112112
isa = PBXGroup;
113113
children = (
114-
DA5E51DC822BDDE21B01981B /* Pods-Runner.debug.xcconfig */,
115-
552E09CE27D49778F805B244 /* Pods-Runner.release.xcconfig */,
116-
B82F33375CA1C21771A193A8 /* Pods-Runner.profile.xcconfig */,
114+
D95055A9C1234ED514595993 /* Pods-Runner.debug.xcconfig */,
115+
7861206952BB60B167B696C0 /* Pods-Runner.release.xcconfig */,
116+
A410C793C7B93DCBB45D9EB4 /* Pods-Runner.profile.xcconfig */,
117117
);
118-
name = Pods;
118+
path = Pods;
119119
sourceTree = "<group>";
120120
};
121121
766B589C221AFEB4009C8264 /* resources */ = {
@@ -167,8 +167,8 @@
167167
9740EEB11CF90186004384FC /* Flutter */,
168168
97C146F01CF9000F007C117D /* Runner */,
169169
97C146EF1CF9000F007C117D /* Products */,
170-
4D5DBC2F2D9B3780C0E34E70 /* Pods */,
171-
F4A9A7110F1ED0F8FA0C1CB8 /* Frameworks */,
170+
3A53BCD3EB59ED7D1287C855 /* Pods */,
171+
D0238D598160A00ED9653B2C /* Frameworks */,
172172
);
173173
sourceTree = "<group>";
174174
};
@@ -211,10 +211,10 @@
211211
name = "Supporting Files";
212212
sourceTree = "<group>";
213213
};
214-
F4A9A7110F1ED0F8FA0C1CB8 /* Frameworks */ = {
214+
D0238D598160A00ED9653B2C /* Frameworks */ = {
215215
isa = PBXGroup;
216216
children = (
217-
DF78FC2E6B52C611A2470FD3 /* Pods_Runner.framework */,
217+
5A32196AD03E84FB2BF8DB09 /* Pods_Runner.framework */,
218218
);
219219
name = Frameworks;
220220
sourceTree = "<group>";
@@ -226,14 +226,14 @@
226226
isa = PBXNativeTarget;
227227
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
228228
buildPhases = (
229-
3B6A8D2086FBD2AD9C7DCF6F /* [CP] Check Pods Manifest.lock */,
229+
74CA16427B28BAD186CAEA66 /* [CP] Check Pods Manifest.lock */,
230230
9740EEB61CF901F6004384FC /* Run Script */,
231231
97C146EA1CF9000F007C117D /* Sources */,
232232
97C146EB1CF9000F007C117D /* Frameworks */,
233233
97C146EC1CF9000F007C117D /* Resources */,
234234
9705A1C41CF9048500538489 /* Embed Frameworks */,
235235
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
236-
B6D61E1E4EDD4BE1246C8259 /* [CP] Embed Pods Frameworks */,
236+
A7709CCAA6348E35D1D8BC95 /* [CP] Embed Pods Frameworks */,
237237
);
238238
buildRules = (
239239
);
@@ -340,7 +340,7 @@
340340
shellPath = /bin/sh;
341341
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
342342
};
343-
3B6A8D2086FBD2AD9C7DCF6F /* [CP] Check Pods Manifest.lock */ = {
343+
74CA16427B28BAD186CAEA66 /* [CP] Check Pods Manifest.lock */ = {
344344
isa = PBXShellScriptBuildPhase;
345345
buildActionMask = 2147483647;
346346
files = (
@@ -377,7 +377,7 @@
377377
shellPath = /bin/sh;
378378
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
379379
};
380-
B6D61E1E4EDD4BE1246C8259 /* [CP] Embed Pods Frameworks */ = {
380+
A7709CCAA6348E35D1D8BC95 /* [CP] Embed Pods Frameworks */ = {
381381
isa = PBXShellScriptBuildPhase;
382382
buildActionMask = 2147483647;
383383
files = (
@@ -534,7 +534,7 @@
534534
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
535535
GCC_WARN_UNUSED_FUNCTION = YES;
536536
GCC_WARN_UNUSED_VARIABLE = YES;
537-
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
537+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
538538
MTL_ENABLE_DEBUG_INFO = NO;
539539
SDKROOT = iphoneos;
540540
SWIFT_OBJC_INTERFACE_HEADER_NAME = "Runner-Swift.h";
@@ -548,6 +548,7 @@
548548
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
549549
buildSettings = {
550550
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
551+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
551552
CLANG_ENABLE_MODULES = YES;
552553
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
553554
CODE_SIGN_IDENTITY = "Apple Development";
@@ -560,7 +561,7 @@
560561
"$(PROJECT_DIR)/Flutter",
561562
);
562563
INFOPLIST_FILE = Runner/Info.plist;
563-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
564+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
564565
LD_RUNPATH_SEARCH_PATHS = (
565566
"$(inherited)",
566567
"@executable_path/Frameworks",
@@ -627,7 +628,7 @@
627628
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
628629
GCC_WARN_UNUSED_FUNCTION = YES;
629630
GCC_WARN_UNUSED_VARIABLE = YES;
630-
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
631+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
631632
MTL_ENABLE_DEBUG_INFO = YES;
632633
ONLY_ACTIVE_ARCH = YES;
633634
SDKROOT = iphoneos;
@@ -678,7 +679,7 @@
678679
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
679680
GCC_WARN_UNUSED_FUNCTION = YES;
680681
GCC_WARN_UNUSED_VARIABLE = YES;
681-
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
682+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
682683
MTL_ENABLE_DEBUG_INFO = NO;
683684
SDKROOT = iphoneos;
684685
SWIFT_COMPILATION_MODE = wholemodule;
@@ -693,6 +694,7 @@
693694
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
694695
buildSettings = {
695696
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
697+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
696698
CLANG_ENABLE_MODULES = YES;
697699
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
698700
CODE_SIGN_IDENTITY = "Apple Development";
@@ -705,7 +707,7 @@
705707
"$(PROJECT_DIR)/Flutter",
706708
);
707709
INFOPLIST_FILE = Runner/Info.plist;
708-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
710+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
709711
LD_RUNPATH_SEARCH_PATHS = (
710712
"$(inherited)",
711713
"@executable_path/Frameworks",
@@ -730,6 +732,7 @@
730732
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
731733
buildSettings = {
732734
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
735+
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
733736
CLANG_ENABLE_MODULES = YES;
734737
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
735738
CODE_SIGN_IDENTITY = "Apple Development";
@@ -742,7 +745,7 @@
742745
"$(PROJECT_DIR)/Flutter",
743746
);
744747
INFOPLIST_FILE = Runner/Info.plist;
745-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
748+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
746749
LD_RUNPATH_SEARCH_PATHS = (
747750
"$(inherited)",
748751
"@executable_path/Frameworks",

0 commit comments

Comments
 (0)