diff --git a/ios/scripts/pods_helpers.rb b/ios/scripts/pods_helpers.rb index 7a9fa41f42..3fff52ffb4 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