Skip to content

Commit

Permalink
Xcode 15 向けに Podfile 修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatsu47 committed Sep 23, 2023
1 parent 78ec2a4 commit fec96cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
# --- Fix for Xcode 15.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
installer.generated_projects.each do |project|
project.targets.each do |target|
Expand Down

0 comments on commit fec96cf

Please sign in to comment.