Skip to content

Commit b2de396

Browse files
committed
fix: Podfile
1 parent 458d89f commit b2de396

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/Podfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ post_install do |installer|
4444
installer.pods_project.targets.each do |target|
4545
flutter_additional_ios_build_settings(target)
4646
target.build_configurations.each do |config|
47+
xcconfig_path = config.base_configuration_reference.real_path
48+
xcconfig = File.read(xcconfig_path)
49+
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
50+
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
4751
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
4852
'$(inherited)',
4953
'PERMISSION_NOTIFICATIONS=1'

0 commit comments

Comments
 (0)