Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Dec 29, 2020

Description

There's no flutter run --verbose available for host add-to-app to see why assemble failed. Until we can emit better, more focused error messages, default to making the script run in verbose mode so it can be seen in the Xcode build logs.
This matches macOS app behavior.

Related Issues

Fixes #70329

Tests

create_test

@jmagman jmagman added platform-ios iOS applications specifically a: existing-apps Integration with existing apps via the add-to-app flow t: xcode "xcodebuild" on iOS and general Xcode project management labels Dec 29, 2020
@jmagman jmagman self-assigned this Dec 29, 2020
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Dec 29, 2020
@google-cla google-cla bot added the cla: yes label Dec 29, 2020
@jmagman jmagman requested a review from gaaclarke December 29, 2020 19:35
@jmagman jmagman requested a review from xster January 6, 2021 22:23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a comment or rename the private method to make it harder to accidentally refactor the normal flow to use this script and get verbose? e.g. make the verbose <-> script <-> add-to-app linkage more explicit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I can move this to a more explicit add-to-app spot.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it into the pod script phase.

'Host',
'-configuration',
'Debug',
'ARCHS=i386', // i386 is not supported in Debug mode.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually failing in CocoaPods before the Flutter script could run.

@jmagman
Copy link
Member Author

jmagman commented Jan 7, 2021

@xster Does this still LGT[u]? I rewrote it.

Copy link
Member

@xster xster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: existing-apps Integration with existing apps via the add-to-app flow platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

2 participants