Sebastian Marcelli Sebastian Marcelli - 4 months ago 11
Swift Question

Firebase won't work

i don't know if someone have the same problem at the moment, but i'm trying to import Firebase in my app but it only shows "No such module for Firebase". Could anyone please help me?
This is the error i get every time.

EDIT: (Sorry for the noobie errors), this is the code in the Podfile:

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

# Pods for CosplaCentral

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

target 'CosplaCentralUITests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase'
end

end

Answer

Update your pod file with the code below, then in Terminal direct to your project file and do pod install (make sure Xcode is closed when doing so) and then load up your project again then retype import Firebase

 platform :ios, '8.0'

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

  # Pods for LT Sounds
  pod 'Firebase'
  pod 'Firebase/Auth'

end
Comments