Skip to content

Commit

Permalink
fix(ios): Add workaround for CocoaPods problem on Xcode 15 (#6921)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Sep 21, 2023
1 parent b6901e0 commit 1ffa244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/scripts/pods_helpers.rb
Expand Up @@ -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

0 comments on commit 1ffa244

Please sign in to comment.