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
d3c318ed
Unverified
Commit
d3c318ed
authored
Feb 13, 2020
by
gaaclarke
Committed by
GitHub
Feb 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made xcode_backend stop on error. (#50664)
parent
d57d4935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
xcode_backend.sh
packages/flutter_tools/bin/xcode_backend.sh
+10
-9
No files found.
packages/flutter_tools/bin/xcode_backend.sh
View file @
d3c318ed
...
...
@@ -3,6 +3,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Exit on error
set
-e
RunCommand
()
{
if
[[
-n
"
$VERBOSE_SCRIPT_LOGGING
"
]]
;
then
echo
"♦
$*
"
...
...
@@ -57,10 +60,12 @@ BuildApp() {
# Default value of assets_path is flutter_assets
local
assets_path
=
"flutter_assets"
# The value of assets_path can set by add FLTAssetsPath to AppFrameworkInfo.plist
FLTAssetsPath
=
$(
/usr/libexec/PlistBuddy
-c
"Print :FLTAssetsPath"
"
${
derived_dir
}
/AppFrameworkInfo.plist"
2>/dev/null
)
if
[[
-n
"
$FLTAssetsPath
"
]]
;
then
assets_path
=
"
${
FLTAssetsPath
}
"
# The value of assets_path can set by add FLTAssetsPath to
# AppFrameworkInfo.plist.
if
FLTAssetsPath
=
$(
/usr/libexec/PlistBuddy
-c
"Print :FLTAssetsPath"
"
${
derived_dir
}
/AppFrameworkInfo.plist"
2>/dev/null
)
;
then
if
[[
-n
"
$FLTAssetsPath
"
]]
;
then
assets_path
=
"
${
FLTAssetsPath
}
"
fi
fi
# Use FLUTTER_BUILD_MODE if it's set, otherwise use the Xcode build configuration name
...
...
@@ -219,8 +224,7 @@ LipoExecutable() {
exit
1
fi
else
lipo
-output
"
${
output
}
"
-extract
"
${
arch
}
"
"
${
executable
}
"
if
[[
$?
==
0
]]
;
then
if
lipo
-output
"
${
output
}
"
-extract
"
${
arch
}
"
"
${
executable
}
"
;
then
all_executables+
=(
"
${
output
}
"
)
else
echo
"Failed to extract
${
arch
}
for
${
executable
}
. Running lipo -info:"
...
...
@@ -300,9 +304,6 @@ EmbedFlutterFrameworks() {
}
# Main entry point.
# TODO(cbracken): improve error handling, then enable set -e
if
[[
$#
==
0
]]
;
then
# Backwards-compatibility: if no args are provided, build.
BuildApp
...
...
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