I am currently trying to set up Flutter Flavors in iOS.
Sadly, I get the error, that Generated.xcconfig is not found. I tried everything I could find on the internet.
From flutter clean, to Xcode clean, to flutter build... Nothing really worked.
The File is in the Flutter folder of iOS, I double checked that. I also have the Generated.xcconfig file in that folder.
The error doesn't apply to the already generated Debug and Release.xcconfig.
/Users/username/IdeaProjects/project_new/ios/example_project.xcconfig:1: could not find included file
'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
Thank you so much!
If the file 'Generated.xcconfig' really exists you may want to check if your MyConfig.xcconfig is in the right directory which is "/ios/Flutter/". Xcode may show you in the left panel that it is in that directory but in reality the path maybe different - you need to check the file property.
For anyone looking for the solution to this issue and looking for more details than the previous answers, here's what worked for me.
First, I encountered the same exact issue as the OP, stating that the Generated.xcconfig
could not be found. If you look closely at the error message posted, you will see that Xcode is trying to find the Generated.xcconfig
file in the /ios folder, and not the /ios/Flutter folder where it should be (and where the other .xcconfig files are located). See the bolded text below.
/Users/username/IdeaProjects/project_new/ios/example_project.xcconfig:
To confirm this is the issue, open the project in Finder and navigate to your ios folder. You should see your custom .xcconfig file here, and the default .xcconfig files in the ios/Flutter folder.
To remedy this, open up Xcode and start the process of creating a configuration file again. The steps to do this are:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With