iOS Question Firebase causes a crash in iOS

stingrae

Member
Licensed User
Longtime User
Hi all,

I have Firebase messaging working perfectly on my Android, and am now trying to get it working in iOS.

I've just gone through this tutorial and then tried to compile it, but it's giving me the error below.
https://www.b4x.com/android/forum/threads/firebase-integration.68623/

It seems to give me the error when I add the reference to the FirebaseAnalytics Library. When I check this box it crashes, when I uncheck it works as it did before.
Did I miss something in the tutorial?


/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/b4i_main.h:7:9: fatal error: 'FirebaseAnalytics.h' file not found
#import "FirebaseAnalytics.h"
^~~~~~~~~~~~~~~~~~~~~
 

Attachments

  • firebase.png
    20.8 KB · Views: 338

Pendrush

Well-Known Member
Licensed User
Longtime User
In case you are using local Mac builder then you need to copy framework files in Libs folder:
 
Upvote 0

stingrae

Member
Licensed User
Longtime User
ok I figured it out (helps that it's not 11pm like it was when I made the orginal post).

I didn't see that there is the possibility to add Firebase references, as well as iFirebase references!

Am posting the image here for other people who are coding when they should be sleeping, and make the same mistake.
 

Attachments

  • ifirebase.png
    11.1 KB · Views: 338
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…