Skip to content

Adjust lipo thinning input/output for macOS - #97111

Merged
zanderso merged 1 commit into
flutter:masterfrom
zanderso:fix-lip-thinning-output
Jan 24, 2022
Merged

zanderso merged 1 commit into
flutter:masterfrom
zanderso:fix-lip-thinning-output

Conversation

@zanderso

@zanderso zanderso commented Jan 24, 2022 •

Copy link
Copy Markdown
Member

Code signing gets confused if the target is a fat binary in the top-level directory in a framework. This change preserves the symlink structure of the copied framework by applying lipo thinning to the underlying binary.

Without this, I get the following during code signing with a fat binary that includes x64 and arm64:

/MYAPP/build/macos/Build/Products/Debug/zraap.app/Contents/Frameworks/FlutterMacOS.framework/FlutterMacOS: bundle format is ambiguous (could be app or framework)

@flutter-dashboard flutter-dashboard Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 24, 2022

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The lipo thinning was never exercised before multiple archs existed. LGTM!

@zanderso
zanderso merged commit 761b109 into flutter:master Jan 24, 2022
@zanderso
zanderso deleted the fix-lip-thinning-output branch January 24, 2022 18:21
@knopp

knopp commented Jan 24, 2022

Copy link
Copy Markdown
Member

Thanks!

@jmagman

jmagman commented Jan 24, 2022

Copy link
Copy Markdown
Member

x-ref Part of #69221

engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Feb 4, 2022
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants