From 2db6ce5370b9853872b5973b29f0b3cc9754c058 Mon Sep 17 00:00:00 2001 From: Yogendra Shelke Date: Fri, 5 Dec 2025 22:33:29 +0530 Subject: [PATCH] fix: gcc preprocessor definitions not applied correctly --- ios/Podfile | 6 ++++++ ios/Podfile.lock | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ios/Podfile b/ios/Podfile index c02dbb9..1a8c157 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -71,6 +71,12 @@ target 'DeveloperApp' do installer.pods_project.targets.each do |target| target.build_configurations.each do |config| + + if target.name.start_with?('React') || target.name == 'RCTTypeSafety' + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [] + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1' + end + # Specify 'Swift Version: 5.0' for resolving archieve errors. if target.name == 'react-native-video' config.build_settings['SWIFT_VERSION'] = '5.0' diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 0450894..44f9b35 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -3028,6 +3028,6 @@ SPEC CHECKSUMS: VisionCamera: 9a8f98ae344fe5d148f84bb45829f9e4caab9d2f Yoga: 92f3bb322c40a86b7233b815854730442e01b8c4 -PODFILE CHECKSUM: da74ee8e870aacc5882038312ce09da2a77525f0 +PODFILE CHECKSUM: 44e869e11f27b48f34089141c70976e0123ac469 COCOAPODS: 1.16.2