iOS Question Firebase causes a crash in iOS

stingrae

Active 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
    firebase.png
    20.8 KB · Views: 606

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:
If you are using a local Mac then you should download Firebase frameworks and copy them to the Libs folder: www.b4x.com/b4i/files/FirebaseFrameworks.zip (100mb) and the attached GoogleIPhoneUtilities.framework. Unzip the frameworks on the Mac directly. Otherwise they might be corrupted.
 
Upvote 0

stingrae

Active 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! :rolleyes:

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

Attachments

  • ifirebase.png
    ifirebase.png
    11.1 KB · Views: 610
Upvote 0
Top