From bf91ad79d0171db102d8e00b806b38cdd6fa0b92 Mon Sep 17 00:00:00 2001 From: Xilai Zhang Date: Wed, 17 Aug 2022 17:55:36 -0700 Subject: [PATCH] [gn + codesign] use join to concatenate (flutter/engine#35474) --- engine/src/flutter/sky/tools/create_full_ios_framework.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/sky/tools/create_full_ios_framework.py b/engine/src/flutter/sky/tools/create_full_ios_framework.py index c90087ef15..fb3dd707b5 100644 --- a/engine/src/flutter/sky/tools/create_full_ios_framework.py +++ b/engine/src/flutter/sky/tools/create_full_ios_framework.py @@ -167,14 +167,14 @@ def create_framework( def embed_codesign_configuration(config_path, contents): with open(config_path, 'w') as f: - f.writelines(contents) + f.write('\n'.join(contents) + '\n') def zip_archive(dst): - ios_file_with_entitlements = ['gen_snapshot_arm64\n'] + ios_file_with_entitlements = ['gen_snapshot_arm64'] ios_file_without_entitlements = [ - 'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter\n', - 'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter\n' + 'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter' ] embed_codesign_configuration( os.path.join(dst, 'entitlements.txt'), ios_file_with_entitlements