Post

Replies

Boosts

Views

Activity

Reply to Stuck on "Sending Analysis to App Store Connect" in Xcode
post_install do |installer| Disable Bitcode and set deployment target installer.pods_project.targets.each do |target| target.build_configurations.each do |config| # Disable bitcode for all configurations if config.build_settings['ENABLE_BITCODE'] config.build_settings['ENABLE_BITCODE'] = 'NO' end # Set deployment target for all pods if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0 config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end end Strip Bitcode from specific frameworks 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 Specify the relative paths to the frameworks that require bitcode stripping framework_paths = [ "Pods/LibraryA/LibraryA/dynamic/LibraryA.xcframework/ios-arm64_armv7/LibraryA.framework/LibraryA", "Pods/LibraryB/LibraryB.xcframework/ios-arm64_armv7/LibraryB.framework/LibraryB" ] Loop through each framework and strip bitcode framework_paths.each do |framework_relative_path| strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) end end
Sep ’24
Reply to Stuck on sending SPI analysis to App Store Connect
Try thiis post_install do |installer| Disable Bitcode and set deployment target installer.pods_project.targets.each do |target| target.build_configurations.each do |config| # Disable bitcode for all configurations if config.build_settings['ENABLE_BITCODE'] config.build_settings['ENABLE_BITCODE'] = 'NO' end # Set deployment target for all pods if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0 config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end end Strip Bitcode from specific frameworks 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 Specify the relative paths to the frameworks that require bitcode stripping framework_paths = [ "Pods/LibraryA/LibraryA/dynamic/LibraryA.xcframework/ios-arm64_armv7/LibraryA.framework/LibraryA", "Pods/LibraryB/LibraryB.xcframework/ios-arm64_armv7/LibraryB.framework/LibraryB" ] Loop through each framework and strip bitcode framework_paths.each do |framework_relative_path| strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) end end
Sep ’24