Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
bc28a220
Unverified
Commit
bc28a220
authored
Jan 09, 2019
by
Dan Field
Committed by
GitHub
Jan 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for duplicative Flutter.framework emeddings when building for Xcode 10 (#23188)
* Check for bad configuration in Xcode10
parent
517f8dc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
xcode_backend.sh
packages/flutter_tools/bin/xcode_backend.sh
+25
-0
No files found.
packages/flutter_tools/bin/xcode_backend.sh
View file @
bc28a220
...
...
@@ -35,7 +35,32 @@ AssertExists() {
return
0
}
# Check if the project.pbxproj file will end up embedding Flutter.framework multiple
# times (once for Cocoapods and once from the template). This will cause cryptic
# build errors in Xcode 10, and we don't have a good way to remedy it without
# potentially damaging the project configuration.
ValidateFlutterFrameworkXcode10
()
{
# Bail out if we're below Xcode 10
if
[[
"Xcode 9.9.9"
!=
"
$(
printf
"
$(
xcodebuild
-version
|
head
-n1
)
\n
Xcode 9.9.9"
|
sort
-V
|
head
-n1
)
"
]]
;
then
return
0
fi
local
pbxproj
=
"
${
PROJECT_FILE_PATH
}
/project.pbxproj"
AssertExists
${
pbxproj
}
if
grep
-q
"
\"\$
{PODS_ROOT}
\/\.\.\/
Flutter
\/
engine
\/
Flutter
\.
framework
\"
"
${
pbxproj
}
&&
grep
-q
"/
\*
Flutter
\.
framework in Embed Frameworks
\*
/"
${
pbxproj
}
;
then
EchoError
"
\"
${
pbxproj
}
\"
attempts to embed Flutter.framework
\
in multiple places (once in 'EmbedFrameworks' and once from Cocapods).
\
This configuration is not supported in the Xcode 10 build system.
\
To resolve this issue, remove Flutter.framework from the 'Embed Frameworks' phase."
exit
-1
fi
}
BuildApp
()
{
ValidateFlutterFrameworkXcode10
local
project_path
=
"
${
SOURCE_ROOT
}
/.."
if
[[
-n
"
$FLUTTER_APPLICATION_PATH
"
]]
;
then
project_path
=
"
${
FLUTTER_APPLICATION_PATH
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment