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.
Just Run flutter build ios in your root Directory. Then Open XCode. ReRun Project In XCode. This will resolve your error.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With