2016-06-17 39 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 –