Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Please specify a platform for this target in your Podfile?

I want to config Firebase Firestore. I followed all the steps, but at the last step, I got the error link below I mention.

After Executing this pod install command below error I got

[!] Automatically assigning platform ios with version 11.4 on target testing_gowtham because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

My podfile:

# Uncomment the next line to define a global platform for your project # platform :ios, '9.0'  target 'testing_gowtham' do   # Comment the next line if you're not using Swift and don't want to use dynamic frameworks   use_frameworks!     # Pods for testing_gowtham    target 'testing_gowthamTests' do     inherit! :search_paths     # Pods for testing   end    target 'testing_gowthamUITests' do     inherit! :search_paths     # Pods for testing   end      pod 'Firebase/Core'     pod 'Firebase/Firestore' end 

I saw this https://guides.cocoapods.org/syntax/podfile.html#platform but I did not find which line I need to change .

How to solve this issue?

like image 901
Gowthaman M Avatar asked Aug 27 '18 13:08

Gowthaman M


People also ask

What does platform mean in Podfile?

It specifies the minimum OS version you are going to support for the pod project. If your applications project's deployment target is less than the pod project mentioned iOS version, you will get a warning if there any any APIs which are deprecated in the supported OS versions in the main project.


1 Answers

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

like image 167
aBilal17 Avatar answered Sep 21 '22 12:09

aBilal17