2016-06-03 6 views
1

Wenn ich setzte pod 'Firebase' i die Analytics nicht bekommen, darin heißt es die Version 2.5.1 und wenn ich sage pod "Firebase/Analyticsintergating New Firebase .. error cocoapods

Unable to satisfy the following requirements: 

- `Firebase/Analytics` required by `Podfile` 

None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics`. 

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. 

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default. 

Wenn i tun pod Update Firebase wird stundenlang stecken bei

Performing a deep fetch of the `master` specs repo to improve future performance 

ich alles versucht habe ich aktualisiert haben alle meine cocoapods Version .. ich weiß nicht, was ist das Problem ..

-Code für Podfile

# Uncomment this line to define a global platform for your project 
# platform :ios, '9.0' 

target 'NewFirebase' do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 


    pod 'Firebase’ 
    pod 'Firebase/Analytics’ 


    target 'NewFirebaseTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

    target 'NewFirebaseUITests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

Dank Aryan

+0

können Sie Ihre Pod-Datei enthalten – Ymmanuel

+0

Ich habe die Frage aktualisiert :) @Ymmanuel –

Antwort

2

Sie müssen möglicherweise Ihren Cocoapods-Master-Repo synchronisieren, indem Sie pod repo update (Source Link) ausführen.

Wenn meine Synchronisierung nicht funktionierte, behob eine schnelle Neuinstallation von Cocoapods die Synchronisierungsfehler.

+0

Danke, aber ich habe es bereits gemerkt .. –

2

Wie es hier etabliert:

https://firebase.google.com/docs/ios/setup#add_firebase_to_your_app

Firebase Analytik in Firebase/Kern enthalten sind, die eigentlich das einzige, was in

pod 'Firebase' 
enthalten ist

Sie brauchen also den Pod 'Firebase/Analytics' nicht hinzuzufügen Es existiert nicht

+0

aber wenn ich dies setzen gibt es die ältere Version, die nicht den Kern oder Analysen –

+0

Mmm seltsam ... haben Sie versucht, Installation "pod" Firebase/Core '"weil pod' Firebase/Analytics 'existiert nicht – Ymmanuel

+0

habe alles versucht, aber danke für Hilfe, wie ich es manuell getan habe :) –