Questions tagged [podfile]

The Podfile is a specification that describes the dependencies of the targets of one or more Xcode projects. The file should simply be named Podfile.

A pod file is used with CocoaPod and CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

370 questions
266
votes
9 answers

How to update a single pod without touching other dependencies

I understand that the following command will update a single pod: pod update . However this also updates the dependencies of other pods (pods that were not included in the update command) that you have previously installed. Is there a way…
ken
  • 3,897
  • 3
  • 22
  • 28
232
votes
12 answers

Flutter: CocoaPods's specs repository is too out-of-date to satisfy dependencies

Current, I was trying to add firebase_core: ^0.5.0+1 and firebase_crashlytics: ^0.2.1+1 packages in my flutter project with the latest versions, It works without any trouble in Android but in iOS, it is not working and giving error. So now how to…
user10563627
177
votes
32 answers

CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"

I've update my flutter package to the last versions and now IOS doesn't work anymore. When I try to update the pods it shows this error: [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: …
Luca Panteghini
  • 2,657
  • 3
  • 21
  • 27
156
votes
3 answers

How to install a pod from a specific branch?

I'm trying add add a pod by cocoapods, and I am using swift 3, while the pod(SQlite.swift). I am trying to use doesn't have a master of the latest swift version, however there is a branch for swift 3. So how should I set my podfile to download the…
Stanley
  • 1,981
  • 3
  • 14
  • 18
134
votes
21 answers

Сocoapods trunk URL couldn't be downloaded

I am getting this error when I try to pod repo update and pod install CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/deprecated_podspecs.txt, error: Failed to open TCP connection to cdn.cocoapods.org:443 (No route to host…
Nike Kov
  • 12,630
  • 8
  • 75
  • 122
119
votes
17 answers

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…
Gowthaman M
  • 8,057
  • 8
  • 35
  • 54
111
votes
25 answers

CocoaPods could not find compatible versions for pod "Firebase/Core” | cloud_firestore, Flutter

I am having some issues in the pod, see below Launching lib/main.dart on iPhone X in debug mode... Running pod install... CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build…
Jashan PJ
  • 4,177
  • 4
  • 27
  • 41
105
votes
2 answers

What exactly does `pod repo update` do?

I'm following an internet tutorial on Firebase and as part of it, I had to do some work on the command line. I'm pretty comfortable with the command line, but I'm unfamiliar with Cocoapods. I ran pod repo update but after doing so I realized I ran…
A Tyshka
  • 3,830
  • 7
  • 24
  • 46
95
votes
4 answers

what is the usage of "~>" in cocoapods

I want to know what the "~>" is used for,cause I find they are the same below: pod 'AFNetworking','~> 2.0.3' pod 'AFNetworking','2.0.3'
Mil0R3
  • 3,876
  • 4
  • 33
  • 61
51
votes
8 answers

How to set the Legacy Swift Versions for each Pod in Podfile

I am currently setting the legacy in the Podfile to SWIFT_VERSION = 2.3, but some of the libraries I am using are Swift 3.0, which means that I need to manually set the legacy for all Swift 3.0 pods legacy to No on each pod install. How do I…
Tal Zion
  • 6,308
  • 3
  • 50
  • 73
50
votes
10 answers

Flutter iOS build failed an error of pod files: Podfile is out of date

I'm trying to build my app on the ios simulator(ios 13), but the build fails and gives an error of pod files: Podfile is out of date This is the error. Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Warning: Podfile is out of date …
Karel Debedts
  • 5,226
  • 9
  • 30
  • 70
37
votes
1 answer

Podfile: Path of local pod relative to Projectpath possible?

I am trying to add local pods to my objective c iOS project. Is there a way to use the rootpath of my project as relative path? The only way I got it to work is by using something like this: pod 'ObjCPod', :path =>…
Snerps
  • 616
  • 1
  • 5
  • 12
35
votes
3 answers

Error using Pod Install command on Podfile in Terminal

I have installed Cocoapods, and created a Podfile using Atom containing the following lines: pod ‘Parse’, ‘~> 1.7.1′ pod ‘ParseUI’, ‘~> 1.1.3′ Upon placing this file into my Xcode Project Root Directory, and running 'pod install' in Terminal. The…
Matt Falconer
  • 365
  • 1
  • 3
  • 6
30
votes
6 answers

"pod init" giving error "-bash: pod: command not found"

I am trying to create a Podfile for my Xcode project for Firebase compatibility, but when I try to create it within the same file that my Xcode project is stored in, using my terminal and typing "pod init", it throws the error "-bash: pod: command…
Ethan Humphries
  • 1,786
  • 3
  • 19
  • 28
25
votes
13 answers

CocoaPods could not find compatible versions for pod "Flipper-Folly"

I have been trying to run ios for a new but kept getting this error ** BUILD FAILED ** The following build commands failed: CompileC…
Scav
  • 274
  • 1
  • 3
  • 9
1
2 3
24 25