EhsanR
EhsanR

Reputation: 467

Unable to find a specification for `Firebase` (adding Firebase SDK by using CocoaPods)

I tried to add Firebase SDK to my iOS app through CocoaPods.

I followed https://cocoapods.org/pods/Firebase and $pod install gave me this error:

Unable to find a specification for Firebase

I followed some other pages people's suggestions like:

pod update Firebase --verbose

Or changing pod 'Firebase' to pod 'Firebase', '>= 2.3.2' in Podfile.

None of them worked. At the end I gave up and followed Manual Alternative https://www.firebase.com/docs/ios/alternate-setup.html.

I appreciate for help to resolve CocoaPods Method.

Upvotes: 0

Views: 3839

Answers (2)

DeveloperBen
DeveloperBen

Reputation: 21

You need to use pod 'Firebase/core'

Upvotes: 0

Bob Baxley
Bob Baxley

Reputation: 3751

As Mike McDonald said, I had to reset the repo to get it to work. Something I did had deleted all of the modules. I could see that the state was funny by running git status in ~/.cocoapods/repos/master.

This worked for me:

cd ~/.cocoapods/repos/master
git fetch
git reset --hard

Upvotes: 6

Related Questions