2016-05-22 22 views
2

我总是在导入火力地堡框架得到以下警告我AppDelegate.swiftiOS的火力地堡进口警告和错误

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

而且在didFinishLaunchingWithOptions:以下错误:

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


我进口Firebase框架与CocoaPods。 这是我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中的第二行“# platform :ios, '9.0'”的注释。我很确定那是那里的问题。

+0

不幸的不是。我取消了该行的注释并做了“pod更新”,但仍然是同样的问题。 –

4

我相信这个问题可能是,你命名你的项目Firebase

+0

你是完全正确的,我有同样的问题,我命名我的项目就像一个Cocoapods框架 –