Skip to content

Commit

Permalink
strip bitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
onghwan committed Jan 17, 2025
1 parent 992d532 commit 70dfb5b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions packages/core-mobile/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3420,6 +3420,6 @@ SPEC CHECKSUMS:
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 96872ee462cfc43866ad013c8160d4ff6b85709b

PODFILE CHECKSUM: 0ceaf0672f371cadb0c0a832c2bbda3a00a22c35
PODFILE CHECKSUM: 64c87c4676df1a44c3fa8243a7946bbea93dd97f

COCOAPODS: 1.15.2

0 comments on commit 70dfb5b

Please sign in to comment.