Skip to content

Commit 993773b

Browse files
authored
[PE-6094] Drop bitcode from pods (#11979)
1 parent 4fb678e commit 993773b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/mobile/ios/Podfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,27 @@ target 'AudiusReactNative' do
4545
)
4646

4747
post_install do |installer|
48+
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
49+
50+
def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
51+
framework_path = File.join(Dir.pwd, framework_relative_path)
52+
command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
53+
puts "Stripping bitcode: #{command}"
54+
system(command)
55+
end
56+
57+
framework_paths = [
58+
"Pods/TikTokOpenSDK/TikTokOpenSDK.framework/TikTokOpenSDK",
59+
"Pods/google-cast-sdk-dynamic-xcframework-no-bluetooth/GoogleCast.xcframework/ios-arm64/GoogleCast.framework/GoogleCast",
60+
"Pods/SnapSDK/SCSDKCoreKit.xcframework/ios-arm64_armv7_armv7s/SCSDKCoreKit.framework/SCSDKCoreKit",
61+
"Pods/SnapSDK/SCSDKCreativeKit.xcframework/ios-arm64_armv7_armv7s/SCSDKCreativeKit.framework/SCSDKCreativeKit",
62+
"Pods/SnapSDK/SCSDKLoginKit.xcframework/ios-arm64_armv7_armv7s/SCSDKLoginKit.framework/SCSDKLoginKit",
63+
]
64+
65+
framework_paths.each do |framework_relative_path|
66+
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
67+
end
68+
4869
react_native_post_install(
4970
installer,
5071
config[:reactNativePath],

0 commit comments

Comments
 (0)