Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')

My flutter project is not working on ios devices getting. i have tried below the command sudo gem install cocoapods .

flutter run:

Warning: CocoaPods not installed. Skipping pod install.   CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.   Without CocoaPods, plugins will not work on iOS or macOS. To install:   sudo gem install cocoapods   pod setup    Running Xcode build...                                                                                                       Xcode build done.                                            4.3s Failed to build iOS app Error output from Xcode build: ↳     ** BUILD FAILED **   Xcode's output: ↳     error: /Users/sukhjinder/StudioWorkspace/shrutiFlutterProjects/myapp/ios/Flutter/Debug.xcconfig:1: could not find included file 'Pods/Target     Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')         note: Using new build systemnote: Planning buildnote: Constructing build description  Could not build the precompiled application for the device.  Error launching application on iPhone. 
like image 486
Shruti Ramnandan Sharma Avatar asked Sep 12 '19 07:09

Shruti Ramnandan Sharma


People also ask

Can't find include file production Xcconfig in search paths?

Just Run flutter build ios in your root Directory. Then Open XCode. ReRun Project In XCode. This will resolve your error.


2 Answers

Open "Terminal" and navigate to your flutter project. Then navigate inside "ios" folder by cd ios and run pod install.

For me the problem was that pods weren't installed.

like image 142
necixy Avatar answered Oct 05 '22 10:10

necixy


Open the terminal, navigate to the project and type

rm ios/Podfile 

After that build the project with

flutter build ios 

It solved the problem for me.

like image 32
Jofre Avatar answered Oct 05 '22 10:10

Jofre