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
4d5db889
Unverified
Commit
4d5db889
authored
Jan 11, 2021
by
Jenn Magder
Committed by
GitHub
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default add-to-app xcode_backend script to be verbose (#73110)
parent
062022b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
module_test_ios.dart
dev/devicelab/bin/tasks/module_test_ios.dart
+6
-4
podhelper.rb.tmpl
...mplates/module/ios/library/Flutter.tmpl/podhelper.rb.tmpl
+1
-1
No files found.
dev/devicelab/bin/tasks/module_test_ios.dart
View file @
4d5db889
...
...
@@ -305,8 +305,8 @@ Future<void> main() async {
);
section
(
'Fail building existing Objective-C iOS app if flutter script fails'
);
final
int
xcodebuildExitCode
=
await
inDirectory
<
int
>(
objectiveCHostApp
,
()
=>
e
xec
(
final
String
xcodebuildOutput
=
await
inDirectory
<
String
>(
objectiveCHostApp
,
()
=>
e
val
(
'xcodebuild'
,
<
String
>[
'-workspace'
,
...
...
@@ -315,7 +315,7 @@ Future<void> main() async {
'Host'
,
'-configuration'
,
'Debug'
,
'
ARCHS=i386'
,
// i386 is not supported in Debug mode
.
'
FLUTTER_ENGINE=bogus'
,
// Force a Flutter error
.
'CODE_SIGNING_ALLOWED=NO'
,
'CODE_SIGNING_REQUIRED=NO'
,
'CODE_SIGN_IDENTITY=-'
,
...
...
@@ -327,7 +327,9 @@ Future<void> main() async {
)
);
if
(
xcodebuildExitCode
!=
65
)
{
// 65 returned on PhaseScriptExecution failure.
if
(!
xcodebuildOutput
.
contains
(
'flutter --verbose --local-engine-src-path=bogus assemble'
)
||
// Verbose output
!
xcodebuildOutput
.
contains
(
'Unable to detect a Flutter engine build directory in bogus'
)
||
!
xcodebuildOutput
.
contains
(
'Command PhaseScriptExecution failed with a nonzero exit code'
))
{
return
TaskResult
.
failure
(
'Host Objective-C app build succeeded though flutter script failed'
);
}
...
...
packages/flutter_tools/templates/module/ios/library/Flutter.tmpl/podhelper.rb.tmpl
View file @
4d5db889
...
...
@@ -117,7 +117,7 @@ def install_flutter_application_pod(flutter_application_path)
flutter_export_environment_path = File.join('${SRCROOT}', relative, 'flutter_export_environment.sh');
script_phase :name => 'Run Flutter Build {{projectName}} Script',
:script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\n\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build",
:script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\n
export VERBOSE_SCRIPT_LOGGING=1 &&
\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build",
:execution_position => :before_compile
end
...
...
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