File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments