diff --git a/Podfile b/Podfile index 7eab59eb8ef..b1e0f35e1e8 100644 --- a/Podfile +++ b/Podfile @@ -435,7 +435,23 @@ post_install do |installer| end # rubocop:enable Style/CombinableLoops + # TODO: Remove this once we've updated to a more recent version of Zendesk framework that fixes the Bitcode issue + apply_bitcode_stripping_workaround! + yellow_marker = "\033[33m" reset_marker = "\033[0m" puts "#{yellow_marker}The abstract target warning below is expected. Feel free to ignore it.#{reset_marker}" end + +# TODO: Remove this once we've updated to a more recent version of Zendesk framework that fixes the Bitcode issue +def apply_bitcode_stripping_workaround! + zendesk_frameworks_to_strip = %w[ + SDKConfigurations + MessagingAPI + ] + zendesk_frameworks_to_strip.each do |fmk| + path = "Pods/Zendesk#{fmk}SDK/#{fmk}.xcframework/ios-arm64/#{fmk}.framework/#{fmk}" + puts "Stripping bitcode from #{fmk}.framework..." + system('xcrun', 'bitcode_strip', path, '-r', '-o', path) + end +end diff --git a/Podfile.lock b/Podfile.lock index fac86566d6c..248a704bc17 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -142,6 +142,6 @@ SPEC CHECKSUMS: ZendeskSupportProvidersSDK: 2fbd2a9597af5d69760088bfb5e0e595e942f218 ZendeskSupportSDK: 22156384d20d30b0aeb263c03f49bef44e1364b2 -PODFILE CHECKSUM: a6a6f05f8cb06ff4e707e8ed623df352e7d47ff5 +PODFILE CHECKSUM: 2638adf8bbcc011e261903d500465a7153ef56eb COCOAPODS: 1.16.1