Skip to content

Commit

Permalink
Workaround issue with Bitcode in Zendesk frameworks and Xcode 16 (#14358
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AliSoftware authored Nov 8, 2024
2 parents 4fde555 + 7280574 commit 2abad4e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ SPEC CHECKSUMS:
ZendeskSupportProvidersSDK: 2fbd2a9597af5d69760088bfb5e0e595e942f218
ZendeskSupportSDK: 22156384d20d30b0aeb263c03f49bef44e1364b2

PODFILE CHECKSUM: a6a6f05f8cb06ff4e707e8ed623df352e7d47ff5
PODFILE CHECKSUM: 2638adf8bbcc011e261903d500465a7153ef56eb

COCOAPODS: 1.16.1

0 comments on commit 2abad4e

Please sign in to comment.