evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

RNFIRAnalytics.h has error "file not found" with #import "Firebase.h" #7

Closed giangdoan closed 8 years ago

giangdoan commented 8 years ago

I installed the module and use #import "Firebase.h" in AppDelegate.m successfully (file found). However in RNFIRAnalytics.xcodeproj, RNFIRAnalytics.h has an error file not found with #import "Firebase.h" and build failed. Am I missing something? Thanks.

evollu commented 8 years ago

sounds like RNFIRAnalytics.xcodeproj can't find the Pod files. It searches file in /ios/Pods. Is it where you install your pods?

giangdoan commented 8 years ago

Lol I didn't use pods so I installed the frameworks myself by dragging them to the project and add them to Link Binary With Libraries. Is there a way to workaround with it or do I have to use pods? Thanks.

evollu commented 8 years ago

sure, you need to add header search path for RNFIRAnalytics target. If your approach is generic enough, a pull request is welcomed

evollu commented 8 years ago

however, Pods are recommended because it helps you to keep up to date

giangdoan commented 8 years ago

👍 Thanks. I updated Frameworks Search Path and Libraries Search Path and it works. I am going to switch to Pods.

danvass commented 8 years ago

@giangdoan @evollu I'm trying to do this by manually adding the firebase SDK to ios and appdelegate.m is able to find Firebase.h but the library is not. What should I set the search paths too?

evollu commented 8 years ago

it searches header file in /ios folder

danvass commented 8 years ago

@evollu that's where I have the firebase framework but still gives the error

evollu commented 8 years ago

can you share an example repo?