Member-only story
How to fix Flutter + Xcode Debug.xcconfig:2: could not find included file ‘Generated.xcconfig’ in search paths error
Subscribe to TLDRStories.com to get your daily dose of tech news, condensed into a few stories.
I met this error several times on Xcode and its kind of frustrating, so I think writing it down will help others and me.
How does this error happen?
This error occurred when I am creating multiple builds type for my app. Development and production build on 2 different firebase server. After I have done with all the setup and tried to run the build it, this error pops up on Xcode.
This is the full error on my Xcode.
project/ios/Flutter/Debug.xcconfig:2: could not find included file ‘Generated.xcconfig’ in search paths
Solution
On VScode terminal type:
- flutter clean
- flutter build
On Xcode:
- Product >> Clean Build Folder
- Product >> Build
I hope this solution expedites your Flutter development 😀, drop me a few claps 👏 👏 👏 … if it does! Hahaha! Happy coding and fluttering!