From 01d13d5b17ce661c98845e9c2650ca4ffd17854c Mon Sep 17 00:00:00 2001 From: Yogendra Shelke <25844542+YogendraShelke@users.noreply.github.com> Date: Mon, 8 Dec 2025 11:03:02 +0530 Subject: [PATCH] chore: update ios build config --- ios/Podfile | 25 +++++++++++++++++++++++++ ios/Podfile.lock | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ios/Podfile b/ios/Podfile index 66ccdc77..15ea6b5a 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -94,8 +94,21 @@ post_install do |installer| # :ccache_enabled => true ) + installer.pods_project.build_configurations.each do |config| + config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)'] + if config.name == "Debug" + config.build_settings['DEAD_CODE_STRIPPING'] = 'YES' + end + end + installer.pods_project.targets.each do |target| target.build_configurations.each do |config| + if target.name == "React" + if config.name == "ReleaseDevApp" + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [] + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] |= ['$(inherited)', "DEBUG=1"] + end + end # Specify 'Swift Version: 5.0' for resolving archieve errors. if target.name == 'react-native-video' config.build_settings['SWIFT_VERSION'] = '5.0' @@ -105,4 +118,16 @@ post_install do |installer| end end end + + # Ensure deployment_target is set correctly for all projects + installer.generated_projects.each do |project| + project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end + project.build_configurations.each do |bc| + bc.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target + end + end end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 5a657015..dbba87ba 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -2578,6 +2578,6 @@ SPEC CHECKSUMS: SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea Yoga: 92f3bb322c40a86b7233b815854730442e01b8c4 -PODFILE CHECKSUM: f83815b440871ddc4d9bac375e7dc5aef13dcf51 +PODFILE CHECKSUM: bd6c88a4c9599e978dc53573bb32d0ff5fe3a42f COCOAPODS: 1.16.2