Skip to content

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Jan 24, 2022

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
Copy link
Member

@jmagman jmagman left a comment

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
Copy link
Member

knopp commented Jan 24, 2022

Thanks!

@jmagman
Copy link
Member

jmagman commented Jan 24, 2022

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