EddyVerbruggen / cordova-plugin-googleplus

:heavy_plus_sign: Cordova plugin to login with Google Sign-In on iOS and Android
567 stars 630 forks source link

Undefined symbol: _OBJC_CLASS_$_GTMLogLevelFilter (ios build) #654

Open Zvika88 opened 4 years ago

Zvika88 commented 4 years ago

migrated from old Google Sign in (5.3.0) to the current 8.1.2, i get the following errors on iOS in XCode:

Undefined symbol: _OBJCCLASS$_GTMLogLevelFilter Undefined symbol: _OBJCMETACLASS$_GTMLogLevelFilter Undefined symbol: _OBJCCLASS$_GTMLogger

I am on Xcode 11.0 (build 11A420a), I also have the Facebook login installed (cordova-plugin-facebook4 6.2.0 ) which uses another pod, and cordova-plugin-firebase 2.0.5 . Cordova 9.0.1 , cordova-ios 5.0.1

Any ideas?

BTW the immediate reason to move up to new googleplus plugin is that when adding the new facebook plugin (the old one stopped working with iOS 13), google plus reverted to an old reported problem of going to google home screen after a login attempt - a problem we had with googleplus 7.x and which forced me to stay on googleplus 5.3 until now.

Anyhow, anyone else seen this link errors?

They seem to be discussed here: https://stackoverflow.com/questions/42292090/firebase-undefined-symbols-for-architecture-x86-64 yet none of the suggestions over there work for me.

Thanks!

Zvika88 commented 4 years ago

update: downgrading to googleplus 7.0.2 avoids this issue.

At the core the issue is from the firebase plugin, cordova-plugin-firebase v2.0.5 which is rather old and probably require old Firebase libraries that are not compatible with the google plugin 8.1.2 . There currently is no newer version of the firebase plugin. But downgrading to gp7.0.2 avoids this issue. I'll leave the case open because it is brought in by the gp8.1.2 need for new libraries.

BTW the missing symbols seems to be just for logging. Maybe we can have stubs for these missing functions so that one can compile and link with the latest sdk?