evanhaus evanhaus - 5 months ago 34
Swift Question

no such module 'Firebase' in Xcode (Swift)

I have been looking up on every website that had a similar/identical issue to this Xcode error and I have tried everything and nothing has worked. Most people say cleaning and building the project will make Firebase recognized but that hasn't worked. I've tried a bunch of different framework search paths but each framework is in a different folder, not one framework folder. This is my podfile:

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

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

# Pods for Promposal

target 'PromposalTests' do
inherit! :search_paths
pod 'Firebase', '>= 2.5.0'
# Pods for testing
end

end


these are my project folders

i've tried making my framework search path $(SRCROOT) and all variations and nothing works. My issue seems to be unlike any other that I can find from googling. I suspect its the framework search path but i don't know what to make it, and I could be wrong.

Any help would be greatly appreciated.

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

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

  # Pods for Promposal

target 'Promposal' do

    pod 'Firebase', '>= 2.5.0'

    # Pods for testing
 target 'PromposalTests' do
    inherit! :search_paths
    pod 'Firebase', '>= 2.5.0'
 end

end

You were writing your podfile properly and you were adding the Firebase only to the test. Try this podfile and check.

Comments