Skip to content

Commit 2abad4e

Browse files
authored
Workaround issue with Bitcode in Zendesk frameworks and Xcode 16 (#14358)
2 parents 4fde555 + 7280574 commit 2abad4e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Podfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,23 @@ post_install do |installer|
435435
end
436436
# rubocop:enable Style/CombinableLoops
437437

438+
# TODO: Remove this once we've updated to a more recent version of Zendesk framework that fixes the Bitcode issue
439+
apply_bitcode_stripping_workaround!
440+
438441
yellow_marker = "\033[33m"
439442
reset_marker = "\033[0m"
440443
puts "#{yellow_marker}The abstract target warning below is expected. Feel free to ignore it.#{reset_marker}"
441444
end
445+
446+
# TODO: Remove this once we've updated to a more recent version of Zendesk framework that fixes the Bitcode issue
447+
def apply_bitcode_stripping_workaround!
448+
zendesk_frameworks_to_strip = %w[
449+
SDKConfigurations
450+
MessagingAPI
451+
]
452+
zendesk_frameworks_to_strip.each do |fmk|
453+
path = "Pods/Zendesk#{fmk}SDK/#{fmk}.xcframework/ios-arm64/#{fmk}.framework/#{fmk}"
454+
puts "Stripping bitcode from #{fmk}.framework..."
455+
system('xcrun', 'bitcode_strip', path, '-r', '-o', path)
456+
end
457+
end

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@ SPEC CHECKSUMS:
142142
ZendeskSupportProvidersSDK: 2fbd2a9597af5d69760088bfb5e0e595e942f218
143143
ZendeskSupportSDK: 22156384d20d30b0aeb263c03f49bef44e1364b2
144144

145-
PODFILE CHECKSUM: a6a6f05f8cb06ff4e707e8ed623df352e7d47ff5
145+
PODFILE CHECKSUM: 2638adf8bbcc011e261903d500465a7153ef56eb
146146

147147
COCOAPODS: 1.16.1

0 commit comments

Comments
 (0)