diff --git a/ios/Podfile b/ios/Podfile index c81916bb5592..e4803080afce 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -103,4 +103,16 @@ post_install do |installer| # Patch SocketRocket to support TLS 1.3 %x(patch Pods/SocketRocket/SocketRocket/SRSecurityPolicy.m -N < patches/ws-tls13.diff) + # GiphyUISDK.xcframework already embeds libwebp; Giphy's podspec also + # declares libwebp as a dependency, which makes CocoaPods statically link + # libwebp into JitsiMeetSDK as well. The two copies trigger a duplicate + # `PodsDummy_libwebp` warning at runtime. Drop the redundant link. + ['Pods-JitsiMeetSDK', 'Pods-JitsiMeet'].each do |aggregate_name| + Dir.glob("Pods/Target Support Files/#{aggregate_name}/*.xcconfig").each do |path| + contents = File.read(path) + patched = contents.gsub(/ -l"?libwebp"?/, '') + File.write(path, patched) if patched != contents + end + end + end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 5345827f5696..88559cea4ffc 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -2521,6 +2521,6 @@ SPEC CHECKSUMS: SplashView: 1f70e5be12f45df018a7236c23aa6919ee509c2f Yoga: 9663a18d096f7f7e17a535cf00849db756709955 -PODFILE CHECKSUM: 7c37a89916893e11159576c8b308b7b5c25246c9 +PODFILE CHECKSUM: 39a3efad826b8b7cb8a25a6d6ddbf6a3547eeedf COCOAPODS: 1.16.2 diff --git a/react-native.config.js b/react-native.config.js index 722ec560e25a..513e59eaecc1 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -8,11 +8,7 @@ module.exports = { dependencies: { '@giphy/react-native-sdk': { platforms: { - ios: { - // Disable auto-linking but keep codegen. - // We need it to generate GiphyReactNativeSDKSpec. - scriptPhases: [] - } + ios: null } }, '@react-native-google-signin/google-signin': {