Unable to find a specification for `GoogleAPIClient/Calendar (~> 1.0.2)` - ios

I was going through the steps mentioned at iOS Quickstart . I am getting following error during pod install
[!] Unable to find a specification for GoogleAPIClient/Calendar (~> 1.0.2)
Please help.

I had to run
pod repo update
Also I updated Cocoapods, not sure if this helped
sudo gem install cocoapods

I ran into something similar and resolved it with:
pod cache clean --all
pod deintegrate
pod repo update

Related

CocoaPods could not find compatible versions for pod "Flipper-Glog": In Podfile:

[!] CocoaPods could not find compatible versions for pod "Flipper-Glog":
In Podfile:
Flipper-Glog (= 0.5.0.4)
None of your spec sources contain a spec satisfying the dependency: Flipper-Glog (= 0.5.0.4).
You have either:
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
Disable everything related to flipper in Podfile and then cd ios && pod install
# use_flipper!()
Worked after using this command:
pod install --repo-update
If you are building from a fresh Reach Native Project, there should be no need to edit any files in the project to get it to run.
Try the solutions here:
React native ios - error when running pod install (installing Flipper-Glog)
I encountered this problem after deleting all my iOS caches and setting some Virtual Env. Opening Xcode and simulator once then try "pod install" should work.
Remove or comment this line from your ios/Podfile in react native.
# use_flipper!()
For M1 chip Mac, run
"arch -x86_64 pod install"
solved it.

#react-native-firebase pod version conflict for Firebase/CoreOnly

I have a react-native project with these dependencies (all are the latest available):
"#react-native-firebase/analytics": "^14.5.1",
"#react-native-firebase/app": "^14.5.1",
"#react-native-firebase/config": "^0.1.5",
"#react-native-firebase/perf": "^14.5.1",
But when I go to pod install, I get:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`) was resolved to 14.5.1, which depends on
Firebase/CoreOnly (= 8.12.1)
RNFBConfig (from `../node_modules/#react-native-firebase/config`) was resolved to 0.1.5, which depends on
Firebase/RemoteConfig (~> 6.5.0) was resolved to 6.5.0, which depends on
Firebase/CoreOnly (= 6.5.0)
I do not understand why config has a different version to all the others and how the latest versions of a project are conflicting.
I have tried the following to fix this:
rm -rf ios/Pods ios/Podfile.lock
pod repo remove trunk
pod install
pod update
pod install --repo-update
My ios/Podfile does not contain explicit pods for Firebase.
Usually these commands tend to fix problems like this. But not this time. Thanks for any suggestions.
react-native-firebase maintainer here!
The 'config' package was wrapping the firebase "Remote Config" SDK packages, so that name was not used in the final release of react-native-firebase - we used "remote-config" in the end, but the alpha releases with the wrong name were still up on npmjs.com.
I just deprecated all versions of that package on npmjs.com so users should get a warning if they try to install it - no one should use that package. If you use the 'remote-config' one, you'll be all set I think
The problem is that #react-native-firebase/config appears unrelated to the #react-native-firebase project, hence the different latest version and pod conflicts. I had to use #react-native-firebase/remote-config instead, as found in the documentation https://github.com/invertase/react-native-firebase
The problem is that react native update a new architecture
Open the file Podfile and add use_frameworks! :linkage => :static inside your targets
Disable the :flipper_configuration line
Put $RNFirebaseAsStaticFramework = true
at the top of podfile
Then run
pod install --repo-update
For Mac M1
arch -x86_64 pod install --repo-update
Hope this useful to someone
I solved the issue by deleting the ./ios/Podfile.lock and run again pod install --repo-update command.

React native firebase/admob iOS pod install problems

i'm trying to install #react-native-firebase/admob with the following command:
npm install #react-native-firebase/admob
After that when i'm going in to ios folder on the project and using :
pod repo update
pod install
i'm getting the following error:
[!] CocoaPods could not find compatible versions for pod
"Firebase/AdMob": In Podfile:
RNFBAdMob (from ../node_modules/#react-native-firebase/admob) was resolved to 11.5.0, which depends on
Firebase/AdMob (= 8.8.0)
None of your spec sources contain a spec satisfying the dependency:
Firebase/AdMob (= 8.8.0).
You have either: * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`. *
mistyped the name or version. * not added the source repo that hosts
the Podspec to your Podfile.
Can somewone help me? i'm using:
Node verison 14.17.6
npm version 6.14.15
CocoaPods 1.11.2
platform ios '11.0'
It is quite difficult to find a admob package that works with React native, but there are some ways. This page can help you, try the instructions mentioned in the answers and make sure you install the correct packages.

Finotes version upgrade is not working?

I am using an iOS framework called fi.notes. Currently i am using the version 2.1.0. I tried to update to 2.3.1. But i keep getting the error in terminal, when i run pod install
[!] Unable to satisfy the following requirements:
- FinotesCore (= 2.3.1) required by Podfile
None of your spec sources contain a spec satisfying the dependency: FinotesCore (= 2.3.1).
I am following their developer documentation, which can be found here
https://finotes.github.io/2018/02/02/objc-docs
Thank you in advance.
Looks like you missed adding --repo-update in pod install
pod install --repo-update
Please make sure the version in Podfile is the latest one, and re-run the pod install command.
Good luck building better apps with fi.notes. :)

Unable to install JSQMessengerViewController as a CocoaPod

I am currently using xCode 6 and running on iOS 8. I am trying to implement this to my project but I have ran into some problems, specifically where the instructions tell me to use
pod 'JSQMessagesViewController'
to install the library. I get the error code in my terminal:
[!] Unknown command: `JSQMessagesViewController`
What am I doing wrong? I have updated and installed cocoa pods with
sudo gem update --system
sudo gem install cocoapods
pod setup
Now when I run pod setup, Setup completed was returned along with:
[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
I'm not sure if this changes anything or affects me installing the pod.

Resources