Hello Guys How are you all? Hope You all are fine. I Am trying to run my flutter app on Xcode, but unfortunately, I get an error as Error: Could not find included file ‘Generated.xcconfig’ in search paths (in target ‘Runner’). So today Here I come with all possible solutions for this error.
We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.
How Error: Could not find included file ‘Generated.xcconfig’ in search paths (in target ‘Runner’) Occurs ?
I am Working in my Flutter Project. It runs fine on Android devices but when I try to run it on Xcode, I get an error as:
Build system information error: /Users/Downloads/flutter_wallpaper-master 2/ios/Flutter/Debug.xcconfig:1: could not find included file ‘Generated.xcconfig’ in search paths (in target ‘Runner’)
How to Solve This Error ?
This Error Occurs cause you might clone your project from a platform like GitHub. To resolve this error you need to get all packages and install pods again.
In Order to Resolve This Error Just Follow below Step.
- Just Run flutter build ios in your root Directory.
- Then Open XCode.
- ReRun Project In XCode.
- This will resolve your error.
Solution 1 Not Worked ? No Matter. Just Follow This Below Solution.
- Firstly run flutter clean in root of your project.
- Then run flutter build.
- Open Xcode and In Xcode, clean project.
- Then build project In Xcode.
- The error should have gone now.
This Error Occurs cause of you might cloned your project from paltform like GitHub. To resolve this error you need to get all packages and install pods again.
- flutter clean
- flutter pub get
- cd ios/
- pod install
In Some case you need to update pod files. So Follow below step to update pods file.
- pod repo update
- pod update
So it’s all About All possible solutions. Hope this above all solution helped you a lot. Comment below Your thoughts and your queries. Comment Below on your suggestion.