2

I was working on Google Analytics and google said that I need to install Firebase to handle Google Analytics actions.

I installed Firebase through Cocoapods and imported property list(.plist) file that firebase.google.com supplied.

But when I try to import Firebase module by import Firebase Xcode says there is no such module and auto-complete advises import FirebaseAnalytics.

If I use FirebaseAnalytics module I got the error shown below. I looked through this question, but none of the answers solved my problem.

Podfile:

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


target 'MyApp do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  # Pods for MyApp
    pod 'Firebase/Core'

  target 'MyAppTests' do
    pod 'Firebase/Core'
    inherit! :search_paths
    # Pods for testing
  end

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

end

enter image description here

Community
  • 1
  • 1
do it better
  • 4,627
  • 6
  • 25
  • 41

1 Answers1

1

Try cleaning up your derived data folder. (See this article for help.) Also, removing the pod and adding it back again might help. :)

BTW: Did you implement FIRApp.configure() in AppDelegate.swift?

Community
  • 1
  • 1