2016-12-29 9 views
0

FirebaseをCocoapods 1.1.1経由でXcodeファイルにインポートしようとしています。私のポッドファイルはこのように見えます。Cocoapods経由でXcodeプロジェクトにFirebaseをインストールできない

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

 
target 'Firebase Login' do 
 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
 
    use_frameworks! 
 

 
    # Pods for Firebase Login 
 

 
pod 'Firebase', '~> 3.11' 
 

 
    target 'Firebase LoginTests' do 
 
    inherit! :search_paths 
 
    pod 'Firebase' 
 
    end 
 

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

 
end

私もこれを試してみました。その後

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

 
target 'Firebase Login' do 
 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
 
    use_frameworks! 
 

 
    # Pods for Firebase Login 
 

 
    target 'Firebase LoginTests' do 
 
    inherit! :search_paths 
 
    pod 'Firebase' 
 
    end 
 

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

 
end

、私は自分の端末でポッドをインストール型付けされた、これは私が得たものです。

Analyzing dependencies 
 
[!] Unable to find a specification for `FirebaseAnalytics (= 3.6.0)` depended upon by `Firebase/Core`

これは私が間違って行っているものですかそれはFirebase自体のバグですか?それが私なら、誰かがこの問題を解決するのを助けることができたら、私は感謝しています。

答えて

0

target 'Firebase LoginTests' do の前にそれらのポッドを追加する必要があります。そうしないと、テストターゲットのみが含まれます。

あなたpodfielが、残念ながら、この

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

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

    # Pods for AppName 
    pod 'Firebase' 
    pod 'Firebase/Auth' 
    pod 'Firebase/Database' 

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

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

end 
+0

のようになります、それはあなたが逃した場合、私は、コードの私の最初の作品で何をしたかであること...私もFirebase /認証およびFirebase /データベースを追加しようとしたが、それです"Firebase/Database"に依存している 'FirebaseDatabase(= 3.1.1)'の仕様を見つけることができませんでしたあなたが発見した間違いはありますか? –

+0

あなたのPodfile.lockファイルとPodsフォルダを削除し、ポッドファイルをリコールします。 –

+0

何らかの理由で端末が私のPodの仕様を見つけることができないため、Podfile.lockファイルがありません。私も更新しようとしましたが、明らかに1.1.1が利用可能な最新のCocoapodsです... –

関連する問題