From 70dfb5bf74ec35f7bf73f35c52e48a4ab8cfc327 Mon Sep 17 00:00:00 2001 From: onghwan Date: Fri, 17 Jan 2025 01:44:48 -0500 Subject: [PATCH] strip bitcode --- packages/core-mobile/ios/Podfile | 16 ++++++++++++++++ packages/core-mobile/ios/Podfile.lock | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/core-mobile/ios/Podfile b/packages/core-mobile/ios/Podfile index d2acf82694..53db242d40 100644 --- a/packages/core-mobile/ios/Podfile +++ b/packages/core-mobile/ios/Podfile @@ -130,6 +130,22 @@ abstract_target 'common' do Pod::UI.warn "Failed to modify Portability.h: #{e.message}" end end + + bitcode_strip_path = `xcrun --find bitcode_strip`.chop! + def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) + framework_path = File.join(Dir.pwd, framework_relative_path) + command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}" + puts "Stripping bitcode: #{command}" + system(command) + end + + framework_paths = [ + "Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/ios-arm64_armv7/OpenSSL.framework/OpenSSL", + ] + + framework_paths.each do |framework_relative_path| + strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) + end end end diff --git a/packages/core-mobile/ios/Podfile.lock b/packages/core-mobile/ios/Podfile.lock index a4f3aa8dda..38d7931dcc 100644 --- a/packages/core-mobile/ios/Podfile.lock +++ b/packages/core-mobile/ios/Podfile.lock @@ -3420,6 +3420,6 @@ SPEC CHECKSUMS: SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: 96872ee462cfc43866ad013c8160d4ff6b85709b -PODFILE CHECKSUM: 0ceaf0672f371cadb0c0a832c2bbda3a00a22c35 +PODFILE CHECKSUM: 64c87c4676df1a44c3fa8243a7946bbea93dd97f COCOAPODS: 1.15.2