FirebaseAnalytics plugin reporting broken iOS reporting

iOS device reporting works fine with Corona Daily.Build 2018.3287 - however, it no longer functions in the last build we used 2018.3334.

We have a theory that it became broken with the upgrade to XCode 9.4 - just a theory at this point, since that is one big difference between these builds, as 3287 is pre-XCode 9.4

Can someone please fix this?

This is a 3rd party plugin. Please reach out to the plugin developer for help.

Rob

I just tested try now

@Scott, yes iOS is now working as is Android versions <8. Can you please solve Android versions >=8.0 ? We can confirm with certainty it is not working.

I cant’ build for iOS anymore since 2 days. I’m using the latest Public Build of Corona and get the following error:

ERROR: Builder failed: ld: library not found for -lFirebaseAnalytics

Best regards!

#bjoern, was this working before? do you know why there is a “-l” before the FirebaseAnalytics in the error message?

Yes, it was working in the same project before.

The relevant part of the linker execution is:

-lplugin\_firebaseAnalytics -lc++ -lz -lFirebaseAnalytics -lFirebaseCore -lFirebaseInstanceID -lGoogleToolboxForMac

Is it correct that there are -lplugin_firebaseAnalytics as well as -lFirebaseAnalytics (I would say yes, first one is the actual Corona plugin, second the “real” Firebase SDK).

Best regards!

Any help?

I had my build from ~week ago, apple complained about yandex API (comes with appodeal plugin), so I edited build file to disable yandex, trying to build new version - the same problem as bjoern…

Aug 28 01:24:50.034 \<result\>ld: library not found for -lFirebaseAnalytics clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> Aug 28 01:24:50.034 ERROR: Builder failed: ld: library not found for -lFirebaseAnalytics Aug 28 01:24:50.035 clang: error: linker command failed with exit code 1 (use -v to see invocation) Aug 28 01:24:50.035 BUILD ERROR: There was a problem linking the app.

Please reach out to Scott, the plugin developer.

Rob

I am looking into this

I have rebuild a bunch of times and cannot reproduce this error, can you guys confirm you are using latest corona build 

With the latest Public Release and also with the latest Daily Build the error changed to:

\<result\>Undefined symbols for architecture armv7: "\_OBJC\_CLASS\_$\_FIRAnalytics", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) "\_OBJC\_CLASS\_$\_FIRApp", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\>

@Scott, we’ve never seen an error message. We simply see that it doesn’t report/populate Firebase appropriately on Android 8.

We are calling firebase.init(). It should show a device entry in the Firebase Analytics dashboard, but it’s not showing there for Android 8 devices, but it does show there for all Android <8 devices.

With latest corona daily build (3361) I have this error:

Examining plugin: plugin.firebaseAnalytics Examining plugin: shared.firebase.core Done. Compiling Slices... Compiling architecture: armv7 Aug 31 01:47:37.286 \<execute\>cd "/var/folders/dd/2h35m15d5t59ng57qf8\_\_gq00000gn/T/CLtmprFj4nX/armv7";unset LIBRARY\_PATH; export IPHONEOS\_DEPLOYMENT\_TARGET=8; export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/:/(..... HERE A LOT OF PATHS.... ) \<result\>Undefined symbols for architecture armv7: "\_OBJC\_CLASS\_$\_FIRAnalytics", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) "\_OBJC\_CLASS\_$\_FIRApp", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)\</result\> Aug 31 01:47:37.287 ERROR: Builder failed: Undefined symbols for architecture armv7: Aug 31 01:47:37.287 "\_OBJC\_CLASS\_$\_FIRAnalytics", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) "\_OBJC\_CLASS\_$\_FIRApp", referenced from: objc-class-ref in libplugin\_firebaseAnalytics.a(firebaseAnalytics.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Aug 31 01:47:37.302 BUILD ERROR: There was a problem linking the app. Check the console for more information. Aug 31 01:47:37.302 Aug 31 01:47:37.348 iOS build failed (12) after 179 seconds

I think I fixed this, I had to shoot in the dark because of I have not had any of these errors but I under why they are happening.

I can confirm that building for iOS is now working again, but I can also confirm that Firebase Analytics is not working on Android 8 (no output in console, no entries in Firebase dashboard).

I just build on android 8.0 and seems to be working now

Scott, it’s not working for us.

The iOS issue that this topic is named after appears to have been resolved. However, the Android version 8+ still appears to fail. There are also problems related to Notifications that haven’t been resolved yet as of the date of this post. To follow that topic, go here: https://forums.coronalabs.com/topic/73769-app-crash-after-registerforpushnotifications-on-ios-firinstanceid-setapnstokentype/

Just a quick update I have been working really hard on trying to get firebase analytics to work with android 8

I mainly focused on fixing that bug before ios and notification are investigated