2016-09-22 48 views
0

當我安裝'Firebase'pod時,此消息出來了,我無法在Xcode上工作。Firebase沒有下載pod

Lopez-MacBook-Pro:tres Lopezeselmejor$ vim Podfile 
# Uncomment this line to define a global platform for your project 
platform :ios, '9.0' 

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

    # Pods for tres 
'Firebase' 
end 

Lopez-MacBook-Pro:tres Lopezeselmejor$ pod install 
Analyzing dependencies 
Downloading dependencies 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `tres.xcworkspace` for this project from now on. 
Pod installation complete! There are 0 dependencies from the Podfile and 0 total 
pods installed. 

[!] The Podfile does not contain any dependencies. 
+0

Markdown很簡單。學習它。 – romainl

回答

0

更改Podfile到: -

use_frameworks! 
target 'tres' do 

    pod 'Firebase' 
end 

當你的終端安裝完畢之後Firebase到您的應用程序。關閉當前.xcodeProj去你的app文件夾,你會看到一個.xcworkspace文件,打開並做進一步的編碼在那裏..

PS: -在swift3,你可能遇到一些測試文件中的問題..看到這個: - No such a module 'Firebase' in Tests.swift file