'Chrono' file not found issue - iOS - firebase

I have few Firebase libraries integrated into my ongoing iOS project and recently I got a 'chrono file not found' error as you can see below:
I am stuck with this for past 2 days. I went through several forums & SO as usual (like this,and this).
But none of the helped and really can't find an accepted solution for this anywhere yet. And another weird thing is Xcode auto code completion and console logging not working after this. My pod file looks like this:
# Uncomment the next line to define a global platform for your project
platform: ios, '13.0'
target 'LearningApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for LearningApp
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'FirebaseFirestoreSwift'
pod 'Firebase/Storage'
pod 'Firebase/Messaging'
pod 'SDWebImagePDFCoder'
pod 'Firebase/Auth'
pod 'MessageKit'
pod 'GoogleSignIn'
pod 'SwiftKeychainWrapper'
target 'LearningAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'LearningAppUITests' do
# Pods for testing
end
end
Right now I am using Xcode 12.0.1 and Swift 5.
I am really stuck with this, hope someone can help.

I got a solution, this worked for me. Hope this may help someone.
Do pod deintegrate from terminal.
Add Firebase frameworks using Swift Package Manager (Check here for How to add Firebase Package Manager).
Install other pods if needed.
And go!

Related

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"

I am making a React-Native mobile application and want to incorporate Firebase and Firebase Authentication. However, I am facing this error when I run 'pod install' or 'pod update':
I did some research and found out that this issue has not yet been resolved by Google (https://issuetracker.google.com/issues/254418199), but I came across a workaround (https://github.com/firebase/firebase-ios-sdk/issues/10359) which said to add a version specifier to the Podfile: pod 'FirebaseAuth', '>= 9.6.0'. However, even after I added the line into the Podfile in my iOS folder, the same error still persists. May I know if I'm doing something wrongly?
I stumbled upon the same issue. It seems it's a compatibility issue with the latest Firesbase SDK version (10).
For now something that worked for me is to place this at the top of the Podfile:
$FirebaseSDKVersion = '9.6.0' (Docs)
This overrides the default firebase sdk and assures it uses the downgraded version.
Now just execute pod install and give a try. If it doesn't work try removing the Podfile.lock and the Pods folder and try again.
BTW I didn't need this line in the Podfile as one of the resources you shared mentioned:
pod 'FirebaseAuth', '>= 9.6.0'
What helped me is to add this into my pod file.
pod 'GTMSessionFetcher', :modular_headers => true
and then run
arch -x86_64 pod update GTMSessionFetcher/Core
Unfortunately, while Alex's answer did help with my original error, I was unable to solve the 2nd error in my comment above. What I did instead was to restart the creation of the app. This time, however, rather than connecting the app to Dialogflow first, I linked the app to Firebase Auth first, and then adding Dialogflow. This worked for me and I managed to build the app with no issues. Hope this helps someone.
try to delete Podfile.lock and run cd ios && pod install --repo-update

Firebase/MLVisionTextModel is not getting installed via pods iOS

[!] CocoaPods could not find compatible versions for pod "Firebase/MLVisionTextModel":
In Podfile:
Firebase/MLVisionTextModel
Specs satisfying the Firebase/MLVisionTextModel dependency were found, but they required a higher minimum deployment target.
Okay!
I have faced the issue yesterday and couldn't solve the issue after trying pod repo update or pod install or pod install after pod deintegrate etc.
I simply have a option , I deleted the Podfile.lock, then in Podfile I simply made pod versions fixed (so that other members of my team aren't affected) i.e. I used SDWebImage like
pod 'SDWebImage', '3.8', :inhibit_warnings => true
then run pod install
only that time it worked for me and saved the whole day!

Firebase/MLVision is not getting installed via Pods iOS

I'm trying to add Firebase/MLVision to my iOS app, but running pod install gives me this:
[!] CocoaPods could not find compatible versions for pod "Firebase/MLVision":
In Podfile:
Firebase/MLVision
Specs satisfying the `Firebase/MLVision` dependency were found, but they required a higher minimum deployment target.
What do I do? Any kind of help is highly appreciated!
After trying different things for some time, I found my answer here: https://stackoverflow.com/a/46613676/1585677
Basically removing the Firebase/MLVision from pod file, then running
pod repo update
pod update
Then adding Firebase/MLVision to Podfile and running pod install
Looks like your Pod file is not valid, or isn't targeting your project. You can see a working codelab here if you have doubts.
Likely, the ios version specified in the Podfile is too low. It needs to be at least 8.0 for Firebase 5.x, including the MLVision subspec:
platform :ios, '8.0'

Cloud FireStore minimum deployment target

I'm getting the following error when trying to enable an app with Cloud FireStore:
[!] Unable to satisfy the following requirements:
- `Firebase/Firestore` required by `Podfile`
Specs satisfying the `Firebase/Firestore` dependency were found, but they required a higher minimum deployment target.
I changed the podfile requirement to 10.2 and my xcode deployment to 10.2 and I am still getting this error. Any suggestions?
Edit:
Solution for me: I did
pod repo update
pod install
pod update
in that order and it worked.
I was adding to an existing project so I did
pod repo update
pod install
pod update
it that order and it worked.
I'm not sure why this ordered worked, put my guess it would have something to clearing/reset something somewhere in the firebase add ons.
I did this in order :
Remove pod 'Firebase/Firestore' from your Podfile, then :
pod repo update
pod update
Then I add pod 'Firebase/Firestore' to my Podfile and finally perform pod install
Firestore should work with iOS 7 and later. More details here.
The simplest Podfile that uses it looks like this:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
The Xcode deployment target for your app should not have any effect on pod install.
The getting started video shows this all in action.
I have had the same problem. I tried pod repo update, pod install, pod update and even updated cocoapods.
Turned out I still had the FirebaseDatabase pod in the podfile.
Removing that solved the problem.
That's it,
pod repo update
pod update
I Had same problem (Specs satisfying the Firebase/Functions dependency were found, but they required a higher minimum deployment target.) when I was trying to add firebase/Functions to my pod file.
After several tries I've solved by removing all pods and then running pod install for each pod line I wanted, one by one, not installing all at same time.
At the end I've found that the pod 'Firebase/Core' was the problem, and I installed it for last and now everything is installed fine.
This is my pod now.
def shared_pods
use_frameworks!
pod 'Firebase/Functions'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'FirebaseUI/Storage'
pod 'SDWebImage'
pod 'Fabric'
pod 'Crashlytics'
end
Installing FirebaseInAppMessaging (0.12.0)
Installing FirebaseInAppMessagingDisplay (0.12.0)
I had the same problem with an another library.
Actually the last iOS version is 12. Also setting this version on the app, the error was still appearing.
The solution for me was to delete the podfile.lock file (I don't know why...)

When I install pod1 it prevents me from installing pod2, when I install pod2 it prevents me from installing pod1

when I install pod 'Firebase' it prevents me from installing pod 'TwilioConversationsClient', when I install pod 'TwilioConversationsClient' it prevents me from installing pod 'Firebase'. I receive "[!] Unable to find a specification for Firebase" message in terminal.
podfile
-----------------------------------------------------------------------
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/twilio/cocoapod-specs'
target 'podname' do
pod 'TwilioConversationsClient'
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for podname
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end
-------------------------------------------------------------------
They install separately, but not together. please help
Twilio Developer Evangelist here. I believe the problem is that you have removed the main CocoaPods spec URL when you added the Twilio spec URL. Add the following line above where your current source line is located (you need both):
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/twilio/cocoapod-specs'
This should help resolve the Firebase pod.

Resources