UPDATE: This issue is resolved in the latest cocaopod version.
Command to upgrade: brew upgrade cocoapods
so if you install that you shouldn't need the solutions below:
Solution 1:
Add this code to your podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
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
After that run a pod update (make sure that the iOS folder is the current directory before running pod update).
pod update
Solution 2: Issues while building iOS project with flutter
Check out this for multi flavour config.
Solution 3:
if you use inAppWebview for flutter then come error like this :
Parse Issue (Xcode): Could not build module 'WebKit'
So you can add in Your pubspec.yaml file Like this:
flutter_inappwebview:
git:
url: https://github.com/Estrelio/flutter_inappwebview.git
ref: fix-xcode-17
Solution 4 (For non-flutter users):
Remove the below line from the script.
flutter_additional_ios_build_settings(target)