Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with iOS Build in Flutter Project .../Flutter/Debug.xcconfig: unable to open file (in target "Runner" in project "Runner")

I am working on a Flutter project. Declared few dependencies in the pubspec.yaml file. Project is building fine on Android, but when I try to run on iOS. I am getting the below error. Searched multiple issues, couldn't figure out the exact issue.

.../Flutter/Debug.xcconfig: unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')

pubspec.yaml dependencies

flutter_svg: ^0.19.1
flutter:
  sdk: flutter
flutter_dash: ^0.0.1
readmore: ^1.0.1
cupertino_icons: ^0.1.3
chopper: ^3.0.6
logging: ^0.11.4
package_info: '>=0.4.3+2 <2.0.0'
provider: ^4.3.2+3
sprintf: ^5.0.0
like image 683
Sasank Sunkavalli Avatar asked Dec 13 '20 06:12

Sasank Sunkavalli


1 Answers

Somehow the Debug.xcconfig & Release.xcconfig files were missing from ios/Flutter directory. I created them and added the following lines.

Debug.xcconfig file

#include "Generated.xcconfig"

Release.xcconfig file

#include "Generated.xcconfig"
like image 177
Sasank Sunkavalli Avatar answered Nov 15 '22 09:11

Sasank Sunkavalli