2016-06-17 127 views
1

我真的被困在Firebase安装的这一步到我的iOS应用程序。 Firebase installation to Xcode我尝试了很多次,最后我可以安装一些'pod文件'到我的项目中。但是,当我加import Firebase,显示像Firebase吊舱安装错误

没有这样的模块“火力地堡”的错误

谁能告诉我如何安装火力荚到我现有的IOS的项目?另外如何清除我刚刚安装的pod。

我使用SWIFT 2.2,SCODE 7.3和Mac OS X EI

我荚含量

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

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

    # Pods for APPNAME 

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

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

end 

我的错误: image of my error

+0

您的pod文件内容? – Shubhank

+0

'#取消注释此行为您的项目定义一个全球平台 平台:ios,'9.0' target'APPNAME'do #如果您不使用Swift并且不想使用动态框架 use_frameworks! #PODNAME为APPNAME target'APPNAME Tests'do inherit! :search_paths #Pods for testing end target'APPNAME UITests'do inherit! :search_paths #Pods for testing end end' –

+0

更新您的问题并使用适当的缩进 – Shubhank

回答

1

加入这一行的POD文件

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

target ‘APPNAME’ do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 
pod 'Firebase', '>= 2.5.1' 
    # Pods for APPNAME 

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

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

end 

及之后更新pod

+0

更新意味着什么?建立和运行? –

+1

没有在终端写$ pod安装 –

+0

https://www.firebase.com/docs/ios/guide/setup.html –