Skip to content

Commit c2985dc

Browse files
committed
Fix issues building example app for ios
1 parent 4c05e2d commit c2985dc

File tree

9 files changed

+13
-179
lines changed

9 files changed

+13
-179
lines changed

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
6+
<string>en</string>
77
<key>CFBundleExecutable</key>
88
<string>App</string>
99
<key>CFBundleIdentifier</key>

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/Flutter.podspec

Lines changed: 0 additions & 18 deletions
This file was deleted.

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/Podfile

Lines changed: 0 additions & 41 deletions
This file was deleted.

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 9 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 46;
77
objects = {
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12-
3DA8C3D2AFCCCF1E8E797961 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DD9A4135381E39E1CC191BB /* Pods_Runner.framework */; };
1312
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
1413
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1514
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
@@ -33,42 +32,29 @@
3332
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3433
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3534
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
36-
5DD9A4135381E39E1CC191BB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3735
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3836
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
39-
79B3CD0028FEB089678DF3A1 /* 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>"; };
4037
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
41-
8FF52E2FDEB6FA06D62E11ED /* 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>"; };
4238
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4339
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4440
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
4541
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
4642
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4743
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4844
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
49-
F0795F9566604C6845490522 /* 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>"; };
5045
/* End PBXFileReference section */
5146

5247
/* Begin PBXFrameworksBuildPhase section */
5348
97C146EB1CF9000F007C117D /* Frameworks */ = {
5449
isa = PBXFrameworksBuildPhase;
5550
buildActionMask = 2147483647;
5651
files = (
57-
3DA8C3D2AFCCCF1E8E797961 /* Pods_Runner.framework in Frameworks */,
5852
);
5953
runOnlyForDeploymentPostprocessing = 0;
6054
};
6155
/* End PBXFrameworksBuildPhase section */
6256

6357
/* Begin PBXGroup section */
64-
2B1845B1E23B7EB2B0623718 /* Frameworks */ = {
65-
isa = PBXGroup;
66-
children = (
67-
5DD9A4135381E39E1CC191BB /* Pods_Runner.framework */,
68-
);
69-
name = Frameworks;
70-
sourceTree = "<group>";
71-
};
7258
9740EEB11CF90186004384FC /* Flutter */ = {
7359
isa = PBXGroup;
7460
children = (
@@ -86,8 +72,6 @@
8672
9740EEB11CF90186004384FC /* Flutter */,
8773
97C146F01CF9000F007C117D /* Runner */,
8874
97C146EF1CF9000F007C117D /* Products */,
89-
C911F0ABCECA8EC7951EA6FD /* Pods */,
90-
2B1845B1E23B7EB2B0623718 /* Frameworks */,
9175
);
9276
sourceTree = "<group>";
9377
};
@@ -114,31 +98,19 @@
11498
path = Runner;
11599
sourceTree = "<group>";
116100
};
117-
C911F0ABCECA8EC7951EA6FD /* Pods */ = {
118-
isa = PBXGroup;
119-
children = (
120-
F0795F9566604C6845490522 /* Pods-Runner.debug.xcconfig */,
121-
79B3CD0028FEB089678DF3A1 /* Pods-Runner.release.xcconfig */,
122-
8FF52E2FDEB6FA06D62E11ED /* Pods-Runner.profile.xcconfig */,
123-
);
124-
path = Pods;
125-
sourceTree = "<group>";
126-
};
127101
/* End PBXGroup section */
128102

129103
/* Begin PBXNativeTarget section */
130104
97C146ED1CF9000F007C117D /* Runner */ = {
131105
isa = PBXNativeTarget;
132106
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
133107
buildPhases = (
134-
6C1CBF59A18031E455CDD5E6 /* [CP] Check Pods Manifest.lock */,
135108
9740EEB61CF901F6004384FC /* Run Script */,
136109
97C146EA1CF9000F007C117D /* Sources */,
137110
97C146EB1CF9000F007C117D /* Frameworks */,
138111
97C146EC1CF9000F007C117D /* Resources */,
139112
9705A1C41CF9048500538489 /* Embed Frameworks */,
140113
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
141-
316197B7DFC7DEE6E0953D1D /* [CP] Embed Pods Frameworks */,
142114
);
143115
buildRules = (
144116
);
@@ -165,7 +137,7 @@
165137
};
166138
};
167139
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
168-
compatibilityVersion = "Xcode 10.0";
140+
compatibilityVersion = "Xcode 9.3";
169141
developmentRegion = en;
170142
hasScannedForEncodings = 0;
171143
knownRegions = (
@@ -197,23 +169,6 @@
197169
/* End PBXResourcesBuildPhase section */
198170

199171
/* Begin PBXShellScriptBuildPhase section */
200-
316197B7DFC7DEE6E0953D1D /* [CP] Embed Pods Frameworks */ = {
201-
isa = PBXShellScriptBuildPhase;
202-
buildActionMask = 2147483647;
203-
files = (
204-
);
205-
inputFileListPaths = (
206-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
207-
);
208-
name = "[CP] Embed Pods Frameworks";
209-
outputFileListPaths = (
210-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
211-
);
212-
runOnlyForDeploymentPostprocessing = 0;
213-
shellPath = /bin/sh;
214-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
215-
showEnvVarsInLog = 0;
216-
};
217172
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
218173
isa = PBXShellScriptBuildPhase;
219174
buildActionMask = 2147483647;
@@ -228,28 +183,6 @@
228183
shellPath = /bin/sh;
229184
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
230185
};
231-
6C1CBF59A18031E455CDD5E6 /* [CP] Check Pods Manifest.lock */ = {
232-
isa = PBXShellScriptBuildPhase;
233-
buildActionMask = 2147483647;
234-
files = (
235-
);
236-
inputFileListPaths = (
237-
);
238-
inputPaths = (
239-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
240-
"${PODS_ROOT}/Manifest.lock",
241-
);
242-
name = "[CP] Check Pods Manifest.lock";
243-
outputFileListPaths = (
244-
);
245-
outputPaths = (
246-
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
247-
);
248-
runOnlyForDeploymentPostprocessing = 0;
249-
shellPath = /bin/sh;
250-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
251-
showEnvVarsInLog = 0;
252-
};
253186
9740EEB61CF901F6004384FC /* Run Script */ = {
254187
isa = PBXShellScriptBuildPhase;
255188
buildActionMask = 2147483647;
@@ -339,7 +272,7 @@
339272
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
340273
GCC_WARN_UNUSED_FUNCTION = YES;
341274
GCC_WARN_UNUSED_VARIABLE = YES;
342-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
275+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
343276
MTL_ENABLE_DEBUG_INFO = NO;
344277
SDKROOT = iphoneos;
345278
SUPPORTED_PLATFORMS = iphoneos;
@@ -356,20 +289,8 @@
356289
CLANG_ENABLE_MODULES = YES;
357290
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
358291
ENABLE_BITCODE = NO;
359-
FRAMEWORK_SEARCH_PATHS = (
360-
"$(inherited)",
361-
"$(PROJECT_DIR)/Flutter",
362-
);
363292
INFOPLIST_FILE = Runner/Info.plist;
364-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
365-
LD_RUNPATH_SEARCH_PATHS = (
366-
"$(inherited)",
367-
"@executable_path/Frameworks",
368-
);
369-
LIBRARY_SEARCH_PATHS = (
370-
"$(inherited)",
371-
"$(PROJECT_DIR)/Flutter",
372-
);
293+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
373294
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
374295
PRODUCT_NAME = "$(TARGET_NAME)";
375296
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -425,7 +346,7 @@
425346
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
426347
GCC_WARN_UNUSED_FUNCTION = YES;
427348
GCC_WARN_UNUSED_VARIABLE = YES;
428-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
349+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
429350
MTL_ENABLE_DEBUG_INFO = YES;
430351
ONLY_ACTIVE_ARCH = YES;
431352
SDKROOT = iphoneos;
@@ -474,12 +395,11 @@
474395
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
475396
GCC_WARN_UNUSED_FUNCTION = YES;
476397
GCC_WARN_UNUSED_VARIABLE = YES;
477-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
398+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
478399
MTL_ENABLE_DEBUG_INFO = NO;
479400
SDKROOT = iphoneos;
480401
SUPPORTED_PLATFORMS = iphoneos;
481-
SWIFT_COMPILATION_MODE = wholemodule;
482-
SWIFT_OPTIMIZATION_LEVEL = "-O";
402+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
483403
TARGETED_DEVICE_FAMILY = "1,2";
484404
VALIDATE_PRODUCT = YES;
485405
};
@@ -493,20 +413,8 @@
493413
CLANG_ENABLE_MODULES = YES;
494414
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
495415
ENABLE_BITCODE = NO;
496-
FRAMEWORK_SEARCH_PATHS = (
497-
"$(inherited)",
498-
"$(PROJECT_DIR)/Flutter",
499-
);
500416
INFOPLIST_FILE = Runner/Info.plist;
501-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
502-
LD_RUNPATH_SEARCH_PATHS = (
503-
"$(inherited)",
504-
"@executable_path/Frameworks",
505-
);
506-
LIBRARY_SEARCH_PATHS = (
507-
"$(inherited)",
508-
"$(PROJECT_DIR)/Flutter",
509-
);
417+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
510418
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
511419
PRODUCT_NAME = "$(TARGET_NAME)";
512420
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -524,20 +432,8 @@
524432
CLANG_ENABLE_MODULES = YES;
525433
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
526434
ENABLE_BITCODE = NO;
527-
FRAMEWORK_SEARCH_PATHS = (
528-
"$(inherited)",
529-
"$(PROJECT_DIR)/Flutter",
530-
);
531435
INFOPLIST_FILE = Runner/Info.plist;
532-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
533-
LD_RUNPATH_SEARCH_PATHS = (
534-
"$(inherited)",
535-
"@executable_path/Frameworks",
536-
);
537-
LIBRARY_SEARCH_PATHS = (
538-
"$(inherited)",
539-
"$(PROJECT_DIR)/Flutter",
540-
);
436+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
541437
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
542438
PRODUCT_NAME = "$(TARGET_NAME)";
543439
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";

example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: example
22
description: A flutter_form_builder example project.
3+
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
4+
version: 1.0.0+1
35

46
environment:
57
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)