Skip to content

Commit d1271a6

Browse files
committed
Fixed an issue with BoringSSL on Xcode 16
1 parent 85d2b2a commit d1271a6

File tree

6 files changed

+360
-350
lines changed

6 files changed

+360
-350
lines changed

Podfile

+12-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ target 'XcodeBenchmark' do
7676
end
7777

7878
post_install do |pi|
79-
pi.pods_project.targets.each do |t|
80-
t.build_configurations.each do |config|
79+
pi.pods_project.targets.each do |target|
80+
target.build_configurations.each do |config|
8181
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum_target
8282
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
8383

@@ -86,5 +86,15 @@ post_install do |pi|
8686
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
8787
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
8888
end
89+
90+
if target.name == 'BoringSSL-GRPC'
91+
target.source_build_phase.files.each do |file|
92+
if file.settings && file.settings['COMPILER_FLAGS']
93+
flags = file.settings['COMPILER_FLAGS'].split
94+
flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
95+
file.settings['COMPILER_FLAGS'] = flags.join(' ')
96+
end
97+
end
98+
end
8999
end
90100
end

Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,6 @@ SPEC CHECKSUMS:
11521152
TRON: 1d635dad9a55c9441cb2bcf0571a14a5ede59440
11531153
VK-ios-sdk: 21091f214d271a74b3a3313ec62d1c4da98ce00f
11541154

1155-
PODFILE CHECKSUM: 6ceeb5cbd2090ede244477a1c4b3ea7d3cc81b09
1155+
PODFILE CHECKSUM: b507aaedde2d91693c176466bd92eff574fbd3c3
11561156

1157-
COCOAPODS: 1.12.1
1157+
COCOAPODS: 1.15.2

Pods/Manifest.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)