2

I am using

"cordova-plugin-fcm-with-dependecy-updated": "^2.4.0",
"cordova-plugin-googleplus": "^8.0.0",

I have added IOS platform

"cordova-ios": "^5.0.1",

and when I try to build it in XCode it fails with below error.

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
  objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Note: I have tried everything mentioned in this question. Firebase Undefined symbols for architecture x86_64

Build works if I remove any one of the plugins.

yashpatelyk
  • 409
  • 3
  • 10

2 Answers2

2

To anyone wondering, I solved it by downgrading to

`"cordova-plugin-googleplus": "^7.0.1",`

Latest version 8.0.0 is using Pods to manage dependencies which will be global/project-wide, while 7.0.1 handles dependencies locally i.e only for that plugin. So it won't affect any other plugin(s) using those same dependencies.

yashpatelyk
  • 409
  • 3
  • 10
  • Hello, I am getting same error while building in IOS. But when I try to downgrade to version 7.0.1 google login is not working in Android. So this downgrading I have to do only in IOS? – Bhavik Kalariya Oct 02 '19 at 09:31
  • this version is working on IOS but not working in android also if we use this our app rejected because this is using UIWebView. – user9088454 Dec 29 '21 at 05:03
  • if i use this version then i am getting UIWebView issue upload time – user9088454 Dec 31 '21 at 12:11
0

With this version it has worked perfectly.

"cordova-plugin-googleplus": "^7.0.1"

It should also be taken into account that sometimes it is necessary to add REVERSED_CLIENT_ID

Xcode -> info -> URL Types (add this)

enter image description here

Santiago Vasquez
  • 127
  • 1
  • 10