2016-05-22 7 views
2

私はいつも私のAppDelegate.swiftでFirebaseフレームワークをインポートすることで、次のような警告が出ます:iOSのFirebase輸入警告&エラー

import Firebase -> File 'AppDelegate.swift' is part of module 'Firebase'; ignoring import 

そしてdidFinishLaunchingWithOptions:に次のエラー:

FIRApp.configure() -> Use of unresolved identifier 'FIRApp' 


私は、インポートCocoaPodのFirebaseフレームワーク 私Podfileだこと:私が間違ってやっている

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

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

    # Pods for Firebase 
    pod 'Firebase' 
    pod 'Firebase/Messaging' 

end 

任意のアイデア?

+0

同じ問題が何も解決策を見つけるhere.Did命名されていることかもしれないと考えていますか? –

+0

@AliHayderまだ。 –

答えて

0

あなたはPodfileの2行目 "# platform :ios, '9.0'" をコメント解除しなければなりません。私はそれがそこの問題だと確信しています。

+0

残念ながらありません。私はラインをコメント解除し、「ポッドの更新」を行ったが、それはまだ同じ問題です。 –

4

私はこの問題は、あなたのプロジェクトFirebase

+0

あなたが完全に正しい、私は同じ問題を持っていたと私はCocoapodsフレームワークのように私のプロジェクトに名前を付けました。 –