Reputation: 10947
Using Xcode 10.1, I am trying to add firebase to my iOS app, I keep getting the error:
#import React/RCTUtils.h file not found
#import Firebase/Firebase.h file not found
UPDDATE: Added the firebase files, however now I am getting the error with RNFBAuth
, Firebase/Firebase.h file not found
See attached.
Upvotes: 1
Views: 4031
Reputation: 6379
I installed Firebase without CocoaPods since I wasn't using it anywhere else, and these are the most important lessons I learned:
Most default settings in Firebase expect that the libraries are inside a folder named Firebase. So to avoid any additional pain, I suggest creating that folder inside your ios/ folder. In this Firebase folder you need to add the frameworks you are using and also the Firebase.h file. For example, in my case I have the Analytics and Messaging folders with their respective frameworks, and then the Firebase.h file.
You probably also need to update the Header Search Paths of your iOS Target (this ensure that correct folders are being checked for those files), and add entries for Firebase and react-native-firebase:
Upvotes: 2