Please Specify a Platform for This Target in Your Podfile

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



Leave a reply



Submit