Installing Firebase 2.4.3 cocoapods - ios

I am trying to install Firebase to my project with cocoapods. I modified pod file by adding line
pod 'Firebase', '>= 2.4.3'
And when I type pod install to terminal it gives me an error:
[!] Unable to satisfy the following requirements:
Firebase (>= 2.4.3) required by Podfile
I tried to uncomment and change global "platform" directive to "platform :ios, '9.0'", but it didn't help me, error still there.

try this line:
pod 'Firebase', '~> 2.4'

Related

Unable to find a specification for `ARCore (~> 1.2.1)

I'm trying to compile and build the ARCore example provided here :
https://github.com/google-ar/arcore-ios-sdk
My Podfile looks as follows
`=> cat Podfile
target 'MyTarget'
platform :ios, '11.0'
pod 'ARCore', '~> 1.2.1'
pod 'Firebase/Core', '~> 4.11'
pod 'Firebase/Database', '~> 4.11'`
When I run pod install, I get the folllowing error :
==> pod install
Analyzing dependencies
[!] Unable to find a specification forARCore (~> 1.2.1)``
Run pod update or pod install --repo-update.
Your podspec repo is probably does not include 1.2.1 yet.

Simple cocoapods install bug with OAuth2

This seems like a super simple pod install, yet I'm getting this strange error. Just don't see what's wrong here.
Podfile
# platform :ios, '9.0'
target 'iLook-990' do
use_frameworks!
pod 'OAuthSwift', '~> 1.0.0'
end
Error message:
[!] Unable to satisfy the following requirements:
OAuthSwift (~> 1.0.0) required by Podfile
None of your spec sources contain a spec satisfying the dependency: OAuthSwift (~> 1.0.0).
You have either:
out-of-date source repos which you can update with pod repo update.
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.
if that's the exact same text from the Podfile, you need to remove the # from the first line
platform :ios, '9.0'
target 'iLook-990' do
use_frameworks!
pod 'OAuthSwift', '~> 1.0.0'
end

Cocoa Pods with google calendar api

I am following the instructions on the google calendar api for iOS web page.
See link. https://developers.google.com/google-apps/calendar/quickstart/ios?ver=objc#step_2_prepare_the_workspace
When I follow these terminal commands
cat << EOF > Podfile &&
platform :ios, '7.0'
pod 'GoogleAPIClient/Calendar', '~> 1.0.2'
pod 'GTMOAuth2', '~> 1.1.0'
EOF
pod install &&
open QuickstartApp.xcworkspace
I get the following error
[!] The dependency `GoogleAPIClient/Calendar (~> 1.0.2)` is not used in any concrete target.
The dependency `GTMOAuth2 (~> 1.1.0)` is not used in any concrete target.
I am not sure why this is happening. My project has a different name then QuickstartApp but I don't think this is causing the errors.
You should probably create the Podfile the way Cocoapods recommends.
Yours should probably look like:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'GoogleAPIClient/Calendar', '~> 1.0.2'
pod 'GTMOAuth2', '~> 1.1.0
end
Now run pod install then open you Xcode workspace.
One of the recent changes for Cocoapods was that targets need to be named.

During Pod Installation `AFNetworking (~> 3.0)` is not used in any concrete target

Recently I've installed cocoapods v 1.0.0 in my mac successfully, I am trying to install 'AFNetworking', '~> 3.0' dependency in my pod file of my project directory. which I've created successfully, by putting following code in my pod file
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'AFNetworking', '~> 3.0'
but when I write pod install in terminal it giving me following error
[!] The dependency `AFNetworking (~> 3.0)` is not used in any concrete target.
could anyone suggest me why I am getting this error & how to resolve this issue?
After submitting this question, I further explored its solution & come to know at "https://guides.cocoapods.org/using/the-podfile.html" that I should write simply this code in my podefile
target 'MyApp' do
pod 'AFNetworking', '~> 3.0'
end
instead of above which I found at github AFNetworking official dependency installation guide. https://github.com/AFNetworking/AFNetworking
But I am curious about why the official AFNetworking method does not works for its installation in my project? could anyone answer it please?
anyway Thanks to cocoapods official website.

Cocoapods installation for YouTube integration

I need to install cocoapods for youtube integration,i used this link http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 for reference
This is my podfile
//////////////////////////////////////////
# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'
target 'testyoutube' do
pod "YouTube-Player-iOS-Helper", "~> 0.1"
end
target 'testyoutubeTests' do
end
//////////////////////////////////////////
and i am getting this error code when i tried to install pods
Ansals-Mac-mini:testyoutube ansalantony$ pod install
Analyzing dependencies
CocoaPods 0.37.0.rc.1 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
[!] Unable to find a specification for `YouTube-Player-iOS-Helper (~> 0.1)`
Ansals-Mac-mini:testyoutube ansalantony$
I have installed pod with pod 'AFNetworking', '2.2.1' but I am getting error when I'm trying to install pod
"YouTube-Player-iOS-Helper", "~> 0.1"
u can use this link for referance : https://github.com/youtube/youtube-ios-player-helper
use these pod command instead of the old one
pod "youtube-ios-player-helper", "~> 0.1.1"
Replace your pod line with this one:
pod "youtube-ios-player-helper", "~> 0.1.1"
The latest version is 0.1.4:
pod "youtube-ios-player-helper", "~> 0.1.4"
Notice that everything is lowercase.
Unable to find a specification for YouTube-Player-iOS-Helper (~> 0.1).
It actually translates to: no pod file available with the name 'YouTube-Player-iOS-Helper'. Also ('~> 0.1') represents only the version of the pod file.
In this case you can check the the project’s GitHub page and get the current pod file with latest version.
Currently pod 'youtube-ios-player-helper', '~> 0.1.4' is available.
You can also use only pod 'youtube-iso-player-helper' (without including any specific version) and it will get updated when its version gets updated by the pod development team.

Resources