Member-only story

How to fix Flutter + Xcode Debug.xcconfig:2: could not find included file ‘Generated.xcconfig’ in search paths error

Phong Yew Tong
2 min readMay 22, 2020

--

How to fix Flutter + Xcode Debug.xcconfig:2: could not find included file ‘Generated.xcconfig’ in search paths error
Photo by Gustas Brazaitis on Unsplash

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:

  1. flutter clean
  2. flutter build

On Xcode:

  1. Product >> Clean Build Folder
  2. Product >> Build

I hope this solution expedites your Flutter development 😀, drop me a few claps 👏 👏 👏 … if it does! Hahaha! Happy coding and fluttering!

--

--

Responses (5)