I am totally new to Firebase and building iOS apps. In Xcode 7, I am trying to import Firebase into my Swift class. In a swift file, I have typed \"import Firebase\".
There are two ways to install Firebase: manually, and with CocoaPods.
I recommend using CocoaPods. In your Podfile
, make sure you specify use_frameworks!
:
platform :ios, "9.0"
use_frameworks!
target 'MyProject' do
pod 'Firebase'
end
Then after you pod install
and open the MyProject.xcworkspace
, you should be able to use import Firebase
.
edit by Jay:
If you are targeting OS X your pod file may look more like this
platform :osx, '10.10'
use_frameworks!
target 'MyProject' do
pod 'FirebaseOSX', '>= 2.4.2'
end