Please specify a platform for this target in your Podfile?
Replace your whole pod file text with below text and then check.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
(or) solution 2
platform :ios, '9.0'
is working...I simply removed # this
Please specify a platform for this target in your Podfile
Uncommand the line no: 2 in Ios/Podfile.
Like this platform :ios, ’10.0. and run application
see refer here
Why Flutter iOS build failed?
According to the error message, the platform
property is missing from your Podfile.
To fix it, edit your app's Podfile, and add this line:platform :ios, '10.0'
You can define different iOS version as well.
Error running pod install - Automatically assigning platform `iOS` with version `8.0` on target `Runner`
Open [YourProject]/ios/Podfile and remove the #
sign from platform :ios, '9.0'
and try flutter run
.
If it doesn't work increase the version number for example to 10.0
Flutter pod install error with 'cloud_firestore'
I solved the issue.
Problem was in 'main.dart'. I changed 'main' function from this:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
to this:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(MyApp());
}
So, I think options parameter on Firebase.initializeApp() is required now.
Adding options with FlutterFire CLI solved my problem.
Also, here documentation for this:
https://firebase.flutter.dev/docs/cli
Related Topics
Returning Data from Function in Firebase Observer Code Block Swift
Swipe to Delete on a Tableview That Is Inside a Pageviewcontroller
Errortype' Is Not Convertible to 'Nserror'
iOS Swift Nsmutabledata Has No Member Appendstring
Sort Alphanumeric Array, Consecutive Numbers Should Reside at Last
Swift Uinavigation Bottom Line and Shadow Remove Without Navbar Color Change
Swiftui How Add Custom Modifier with Callback
Locationmanager Didupdatelocations Fires Twice on Device, Only Once on Simulator
Cannot Invoke Initializer for Type Unsafemutablepointer<Uint8>
Read Uiapplicationlaunchoptionsurlkey in Swift
Swiftui - Navigationview Title and Back Button Clipped Under Status Bar After Orientation Change
Core Data Transient Values with Swift
Audiokit - How to Get Real Time Floatchanneldata from Microphone