From 0c929340a6e081d082d5ef60dc9e20b09a4d4718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kozio=C5=82?= Date: Thu, 12 Nov 2026 13:32:54 +0100 Subject: [PATCH] fix(ios): make podspec webrtc path relative The absolute webrtc path in HEADER_SEARCH_PATHS went into the evaluated podspec, so the Podfile.lock checksum was different in each checkout and pod install left the lock file modified. Anchor the path on PODS_TARGET_SRCROOT. Keep symlinks in __dir__, because Xcode collapses ".." as text. --- FishjamReactNativeWorklets.podspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FishjamReactNativeWorklets.podspec b/FishjamReactNativeWorklets.podspec index 431b930..f1954aa 100644 --- a/FishjamReactNativeWorklets.podspec +++ b/FishjamReactNativeWorklets.podspec @@ -6,7 +6,9 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) # sources, resolved the way Metro resolves the package, so it never has to enter # the fork's Objective-C umbrella header. webrtc_package_json = `node --print "require.resolve('@fishjam-cloud/react-native-webrtc/package.json', { paths: ['#{__dir__}'] })"`.strip -webrtc_dir = File.dirname(webrtc_package_json) +# Relative, so the Podfile.lock checksum does not depend on the checkout path. +# __dir__ must keep its symlinks, because Xcode collapses ".." as text. +webrtc_dir = Pathname.new(File.dirname(webrtc_package_json)).relative_path_from(Pathname.new(__dir__)) Pod::Spec.new do |s| s.name = 'FishjamReactNativeWorklets' @@ -26,7 +28,7 @@ Pod::Spec.new do |s| 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20', 'HEADER_SEARCH_PATHS' => [ '"$(PODS_TARGET_SRCROOT)/cpp"', - "\"#{webrtc_dir}/common/cpp/fishjam-video/public\"", + "\"$(PODS_TARGET_SRCROOT)/#{webrtc_dir}/common/cpp/fishjam-video/public\"", '"$(PODS_ROOT)/Headers/Public/RNWorklets"', ].join(' '), }