close

[Solved] error: could not find included file ‘Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig’ in search paths (in target ‘Runner’)

Hello Guys How are you all? Hope You all are fine. When I was trying to run my flutter app and suddenly I get the following error in my stack track. error: could not find included file ‘Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig’ in search paths (in target ‘Runner’) in a flutter. 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 ‘Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig’ in search paths (in target ‘Runner’) Occurs ?

My flutter app working fine in android but when I run it in iOS It give me following error.

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/milanMac/ClientWork/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.

How to Solve error: could not find included file ‘Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig’ in search paths (in target ‘Runner’)?

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

    to Solve error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner') you just have to install pods manually. the second solution is Just to delete Podfile and re-run your app. else Just uncomment the platform :ios line in the ios/Podfile.

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

    to Solve error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner') you just have to install pods manually. the second solution is Just to delete Podfile and re-run your app. else Just uncomment the platform :ios line in the ios/Podfile.

Solution 1 : Pod Install

To solve this error you just have to install pods manually. Just follow below step.

  1. Open terminal in root level of your project.
  2. Then navigate inside “ios” folder by cd ios.
  3. Now Install Pods by pod install.
  4. After that just Run your app.
  5. Your error might be solved now.

Solution 2 : Delete Podfile

The second solution is Just to delete Podfile and re-run your app.

  1. Open terminal in root level of your project.
  2. Then navigate inside “ios” folder by cd ios.
  3. rm Podfile
  4. After that build the project with
  5. flutter build ios
  6. It solved the problem for me.

Solution 3: uncomment the platform :ios line in the ios/Podfile

Just uncomment the platform :ios line in the ios/Podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

to this:

# Uncomment this line to define a global platform for your project
  platform :ios, '9.0'

Summery

So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: