9

I have ,"pod install ", and my pod file look like this :

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

target 'MyTaxii' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MyTaxii


           pod 'Firebase/Core'
           pod 'Firebase/Database'
           pod 'Firebase/Auth'
           pod  'Firebase/Storage'
           pod 'GeoFire', '>= 1.1'

end

i open the .xworkspace and after running i get error

"'Firebase/Firebase.h' file not found "

in my " GeoFire.m " "and GFQuery.m"

Fattie
  • 27,874
  • 70
  • 431
  • 719
Roxana Slj
  • 311
  • 1
  • 5
  • 23
  • Are you trying to connect firebase here ? Or what exactly do you want to achieve here ? – Dipansh Khandelwal May 02 '20 at 08:08
  • connecting firebase, i specified those pod in my pod file and ran " pod install" , after that i opened my .xworkspace and built the project and im facing these errors – Roxana Slj May 02 '20 at 08:37
  • Please confirm if you have added the `GoogleService-Info.plist` and completed this step here `https://firebase.google.com/docs/ios/setup#initialize-firebase` – Dipansh Khandelwal May 02 '20 at 08:46
  • yes i did , im getting these error before i " import Firebase" in my AppDelegate, – Roxana Slj May 02 '20 at 08:49
  • so i tried to" import Firebase "in my AppDelegate.swift and there also im getting an error => No such a module "Firebase" – Roxana Slj May 02 '20 at 08:51

5 Answers5

3

In addition to trying to clean your cache, try to change "use_frameworks!" for "use_modular_headers!". This is the only solution that worked for me.

 target 'iosApp' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!
  use_modular_headers!

  # Pods for iosApp
  pod 'Firebase/Auth'
  pod 'FirebaseUI/Auth'
  pod 'FirebaseUI/Email'
  pod 'FirebaseUI/OAuth'
end
1

solved it by :

' pod update ' ,

Basically you may need to do these steps:

1.open your podfile and comment the pods

2) go to terminal making sure your in your project directory

3)' pod uninstall '

4) open back podfile and insert pods back and Command Save

5) go to terminal ....' pod install '

6) also do .....pod update after # 5( better to read cocoapod "pod update " if you need specific version , here: https://guides.cocoapods.org/using/pod-install-vs-update.html)

7) open .xworkspace and run

8) command shift k(cleans it)

9) may need to repeat process #1-8

Roxana Slj
  • 311
  • 1
  • 5
  • 23
1

I have same problem.But fixed.

You just need to pod update pod update means that updating local specs repositories.

when I pod install. Firebase version is 6.34.0.

% pod install

Analyzing dependencies
Downloading dependencies
Installing Firebase 2.4.1.1
Installing Firebase 6.34.0 (was 2.4.1.1)

But after pod update. Firebase version is 8.4.0 (was 2.4.1.1)

% pod update

Update all pods
Updating local specs repositories

Analyzing dependencies
Downloading dependencies

Installing Firebase 8.4.0 (was 2.4.1.1)
Installing FirebaseAnalytics 8.4.0 (was 6.9.0)
Installing FirebaseAnonymousAuthUI (12.0.0)
Installing FirebaseAuth 8.4.0 (was 6.9.2)
Installing FirebaseAuthUI (12.0.0)

Another is no change for me.

Hideyasu.T
  • 809
  • 6
  • 5
0

I tried to install the pods given and faced the same issue which you have mentioned. To resolve this issue,

you can do CMD + shift + k or product -> clean build folder.

The entire project needs to be build again. If you have a lot of pods/frameworks or source code this can take some time to recompile. This resolved the pods issue.

0

Could also be a corrupt Xcode module cache. Try quitting Xcode, rm -rf ~/Library/Developer/Xcode/DerivedData/, restarting Xcode, rebuilding.

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139