Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
giangdoan opened this issue Jun 10, 2016 · 9 comments
Closed

Comments

@giangdoan
Copy link

giangdoan commented Jun 10, 2016

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.

@giangdoan giangdoan changed the title RNFIRAnalytics.h file not found #import "Firebase.h" RNFIRAnalytics.h has error "file not found" with #import "Firebase.h" Jun 10, 2016
@evollu
Copy link
Owner

evollu commented Jun 10, 2016

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

@giangdoan
Copy link
Author

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
Copy link
Owner

evollu commented Jun 10, 2016

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

@evollu
Copy link
Owner

evollu commented Jun 10, 2016

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

@giangdoan
Copy link
Author

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

@danvass
Copy link

danvass commented Jul 29, 2016

@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
Copy link
Owner

evollu commented Jul 29, 2016

it searches header file in /ios folder

@danvass
Copy link

danvass commented Jul 30, 2016

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

@evollu
Copy link
Owner

evollu commented Jul 30, 2016

can you share an example repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants