From bb27a16d84bc7c8e9d5fd3651989571324204af4 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 11 Jul 2025 07:15:35 -0700 Subject: [PATCH] Fix RCTPushNotification podspec to work with prebuilds (#52531) Summary: This change tries to use the prebuilds we build in CI i other iOS jobs to speed-up the iOS CI bypass-github-export-checks ## Changelog: [Internal] - Pull Request resolved: https://github.com/facebook/react-native/pull/52531 Test Plan: Build rntester using prebuilds: ``` # after downloading the prebuilds from CI and unzipping them export HERMES_ENGINE_TARBALL_PATH=~/Downloads/hermes-ios-Debug.tar.gz export RCT_USE_LOCAL_RN_DEP=~/Downloads/reactnative-dependencies-debug.tar.gz export RCT_TESTONLY_RNCORE_TARBALL_PATH=~/Downloads/React.xcframework.tar.gz USE_FRAMEWORKS=dynamic bundle exec pod install open RNTesterPods.xcworkspace ``` And then build from Xcode. Reviewed By: rshest Differential Revision: D78158734 Pulled By: cipolleschi fbshipit-source-id: 43cbb66bd44fa621292b69de0dadde5ed20c4574 --- .../PushNotificationIOS/React-RCTPushNotification.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec b/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec index 487566103e2..9e18e93b55f 100644 --- a/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +++ b/packages/react-native/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec @@ -18,6 +18,7 @@ end header_search_paths = [ "\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"", + "\"${PODS_ROOT}/Headers/Public/React-RCTFBReactNativeSpec/FBReactNativeSpec\"", ] Pod::Spec.new do |s| @@ -45,7 +46,9 @@ Pod::Spec.new do |s| s.dependency "React-Core/RCTPushNotificationHeaders" s.dependency "React-jsi" - add_dependency(s, "React-RCTFBReactNativeSpec") + add_dependency(s, "React-RCTFBReactNativeSpec", :additional_framework_paths => ['FBReactNativeSpec']) add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"]) add_dependency(s, "React-NativeModulesApple") + + add_rncore_dependency(s) end