error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')
Solution 1
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.
Solution 2
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.
Solution 3
try to install pod
cd ios
pod install
if it is not working, following this way
navigate ios/Podfile file and uncomment platform :ios, '9.0'
(remove #)
Solution 4
In my case, I have added 2 files in ios/Flutter
Folder
1 Debug.xcconfig
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
2 Release.xcconfig
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
Solution 5
Open the terminal, navigate to the project by typing:
cd your_file_path
After that navigate to the iOS folder by typing:
cd ios
Finally, fix your problem by implementing the missing podfile by typing:
pod init
Then, open the newly created podfile, follow instructions in the file (which tell you to remove a comment on the second line of the file).
Close your Flutter project, and reopen it.
Run your project again.
Shruti Ramnandan Sharma
I'm an Indian developer for building mobile applications with flutter. linkedin-profile
Updated on July 09, 2022Comments
-
Shruti Ramnandan Sharma almost 2 years
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.
-
Fábio Pacheco over 3 yearsCurios enough, this solution worked for me, but only if I hit flutter run on Terminal. If I try to run the project using Android Studio (green arrow) the error persists. Just a note.
-
uplearned.com over 3 yearsFind the ios folder in your project and run pod install
-
Syscall about 3 yearsPlease, add an explanation. See how to answer.