Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

FirebaseAnalytics plugin reporting broken iOS reporting
Started by troylyndon Aug 16 2018 10:01 AM

19 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

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?


  • BK PANARA likes this

[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#3

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

I just tested try now



[TOPIC: post.html]
#4

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

@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.



[TOPIC: post.html]
#5

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 76 posts
  • Corona SDK

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!



[TOPIC: post.html]
#6

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

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



[TOPIC: post.html]
#7

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 76 posts
  • Corona SDK

#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!



[TOPIC: post.html]
#8

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 57 posts
  • Corona SDK

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.


[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

Please reach out to Scott, the plugin developer.

 

Rob



[TOPIC: post.html]
#10

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

I am looking into this

[TOPIC: post.html]
#11

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

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



[TOPIC: post.html]
#12

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 76 posts
  • Corona SDK

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>


[TOPIC: post.html]
#13

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

@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.



[TOPIC: post.html]
#14

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 57 posts
  • Corona SDK

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


[TOPIC: post.html]
#15

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

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.



[TOPIC: post.html]
#16

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 76 posts
  • Corona SDK

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).



[TOPIC: post.html]
#17

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

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



[TOPIC: post.html]
#18

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

Scott, it's not working for us.



[TOPIC: post.html]
#19

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 607 posts
  • Corona SDK

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/



[TOPIC: post.html]
#20

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,795 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]