Skip to content

Move iOS Flutter.framework thinning into copy assemble build target #77007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Mar 1, 2021

#76665 added a ThinIosApplicationFrameworks assemble build target that output the thinned framework directly into Runner.app/Frameworks. This had the side effect of leaving a .last_build_id file in the bundle, which fails App Store validation.

Instead, move the Flutter.framework architecture thinning out of its own assemble build target and into the existing UnpackIOS target. The framework will be copied from the artifacts cached and thinned in the same step. I could have kept ThinIosApplicationFrameworks with UnpackIOS as a dependency, but they really are one concept with the same inputs, outputs, and skip conditions.

Fixes #76958
Closes #76886 (thinning will be skipped when copy is also skipped.

@jmagman jmagman added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. t: xcode "xcodebuild" on iOS and general Xcode project management labels Mar 1, 2021
@jmagman jmagman self-assigned this Mar 1, 2021
@google-cla google-cla bot added the cla: yes label Mar 1, 2021
Comment on lines +87 to +88
// Should only contain Flutter.framework and App.framework.
expect(frameworkDirectory.listSync().length, 2);
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 will detect future regressions that could cause #76958.

@jmagman jmagman requested a review from jonahwilliams March 1, 2021 21:20
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Development

Successfully merging this pull request may close these issues.

Unable to publish app to Apple app store -
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy