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'
Related
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
i have followed an exact guide on how to setup a geofire on to my project. i have success on my android project.. but i cant get it to run for the ios.. and it has the following error as i try to run it.
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 6.1.2, which depends on
Firebase/Database (= 7.11.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
I've tried to run pod update and this is the result
Macbook-MBP:ios Macbook$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
firebase_auth: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to
6.1.2, which depends on Firebase/Database (= 7.11.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1,
which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
and this is what i've imported to my pubspec.yaml file..
firebase_database: ^6.1.2
flutter_geofire: ^2.0.0
i dont understand what im doing wrong, any help would be appreciated.. thanks
for anyone that is facing this issue,
run flutter clean in the terminal
add this line at the bottom of the podfile
pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc', :tag => '4.3.0'
dont forget to add use_frameworks! on top of the podfile
delete Pod folder from iOS.
change platform :ios, '10.0' to platform :ios, '11.0' on the podfile
run pod repo update then pod update
then run flutter run in the terminal
thats how i got it working for me
Updating the platform configured in the Podfile to platform :ios, '10.0' didn't work for me. I've had to update the iOS Deployment Target to 10.0 - located on Runner > Info > Deployment Target
After that, deleting the Podfile.lock with rm -rf Podfile.lock then running pod update and pod install solved the issue for me.
Same issue here. I've been trying to fix for weeks. Can't find anything online either. If you figure it out please post! Sorry, I do not have enough 'reputation points' to comment yet :(
Faced the same challenge but all of the above solutions didn't work for me.
What worked for me:
Following the link shown in the error (I've highlighted):
enter image description here
In you IDE, go to Project File -> ios -> .symlinks -> plugins -> firebase_database -> ios
enter image description here
Open the .podspec file of the dependency.
enter image description here
Look for: s.ios.deployment_target = '12.0'
I think the "s.ios.deployment_target" should be less than or equal to the "platform :ios, 'XX.0'" in the Podfile.
enter image description here
After changing s.ios.deployment_target value to less than in the platform :ios, in the podfile, try removing Podfile.lock, pod install --repo-update etc.
Do the same for other podfiles throwing the error, in your case: flutter_geofire, firebase_database etc.
You can check this solution too. [https://stackoverflow.com/questions/65881232/specs-satisfying-the-firebase-admob-but-they-required-a-higher-minimum-deploy]
I am trying to install firebase analytics in my react native application. For that I am following the link for documentation
https://enappd.com/blog/firebase-analytics-in-react-native-app/101/
My iOS deployment target is 9.0 in the xcode and also 9.0 in the Pods file. But when I tried to install the two plugins
yarn add #react-native-firebase/analytics
yarn add #react-native-firebase/app
I tried to do
cd ios && pod install
I got the error:
[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`)
Specs satisfying the `RNFBApp (from `../node_modules/#react-native-firebase/app`)` dependency were found, but they required a higher minimum deployment target.
Then I googled this error none of them are working solution for me. I tried
rm Podfile.lock
pod install --repo-update
Still the same issue
Then I updated the deployment target to 10.0. Then it was installed successfully. But now I am not able to build the application for iOS because it is giving error
Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
This was happening in the Flipper library of the react native. Then I reverted back my code and now my deployment target is again 9.0 and I am stuck.
Please anyone can guide me to solve this issue.
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!
[!] 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!