From 1ffa2441fc8a04e4bf1712d0afb868a83e7f1951 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 21 Sep 2023 17:09:51 +0200 Subject: [PATCH] fix(ios): Add workaround for CocoaPods problem on Xcode 15 (#6921) --- ios/scripts/pods_helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/scripts/pods_helpers.rb b/ios/scripts/pods_helpers.rb index 7a9fa41f4..3fff52ffb 100644 --- a/ios/scripts/pods_helpers.rb +++ b/ios/scripts/pods_helpers.rb @@ -7,6 +7,12 @@ def assertDeploymentTarget(installer) if should_upgrade config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end + # workaround for Xcode 15 and Cocoapods + # Should not be needed after Cocoapods 1.13.0 + xcconfig_path = config.base_configuration_reference.real_path + xcconfig = File.read(xcconfig_path) + xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR") + File.open(xcconfig_path, "w") { |file| file << xcconfig_mod } end end end \ No newline at end of file