From 85598d58165a7efbadba856bf94b5252320a1e66 Mon Sep 17 00:00:00 2001 From: Victoria Ashworth Date: Tue, 27 Feb 2024 17:51:18 -0600 Subject: [PATCH] Process FlutterMacOS.framework before creating xcframework --- sky/tools/create_macos_framework.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sky/tools/create_macos_framework.py b/sky/tools/create_macos_framework.py index 457a67e1cfc74..0b690e1470ece 100755 --- a/sky/tools/create_macos_framework.py +++ b/sky/tools/create_macos_framework.py @@ -100,11 +100,13 @@ def main(): find_subprocess.wait() xargs_subprocess.wait() + process_framework(dst, args, fat_framework, fat_framework_binary) + # Create XCFramework from the arm64 and x64 fat framework. xcframeworks = [fat_framework] create_xcframework(location=dst, name='FlutterMacOS', frameworks=xcframeworks) - process_framework(dst, args, fat_framework, fat_framework_binary) + zip_framework(dst, args) return 0 @@ -168,6 +170,8 @@ def process_framework(dst, args, fat_framework, fat_framework_binary): subprocess.check_call(['strip', '-x', '-S', fat_framework_binary]) + +def zip_framework(dst, args): # Zip FlutterMacOS.framework. if args.zip: filepath_with_entitlements = ''