Error: Could not find included file 'Generated.xcconfig' in search paths (in target 'Runner') Error: Could not find included file 'Generated.xcconfig' in search paths (in target 'Runner') xcode xcode

Error: Could not find included file 'Generated.xcconfig' in search paths (in target 'Runner')


Try running flutter build ios and then rerun in Xcode


I assume you have already ios/ folder in your Flutter project. If not, you can run flutter build ios.

The root cause of this error most of the times happens after you have cloned a project like from Github.

In order to fix, you need to get the packages and install the pods.

flutter clean && flutter pub get && cd ios/ && pod install 

(In some situation you might need to update your Pod Repo and Pods. You can do that via running pod repo update && pod update)


Please follow these steps/run commands

  1. flutter clean (in terminal)
  2. flutter build (in terminal)
  3. In Xcode, then clean project
  4. In Xcode, then build project

The error should have gone now :)