Hi, I currently using
cordova-plugin-firebase (v1.0.5)
and
cordova-plugin-firebase-dynamiclinks (v0.13.2)
https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks
in my IONIC 3 project. The phone auth is perfectly working in Android platform. However I facing the following error when trying to build in iOS.
duplicate symbol _OBJC_CLASS_$_PodsDummy_GoogleToolboxForMac in:
/Users/<username>/Library/Developer/Xcode/DerivedData/<product-instance>/Build/Products/Debug-iphoneos/GoogleToolboxForMac/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
<product-name>/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
duplicate symbol _OBJC_METACLASS_$_PodsDummy_GoogleToolboxForMac in:
/Users/<username>/Library/Developer/Xcode/DerivedData/<product-instance>/Build/Products/Debug-iphoneos/GoogleToolboxForMac/libGoogleToolboxForMac.a(GoogleToolboxForMac-dummy.o)
<product-name>/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GoogleToolboxForMac-dummy.o)
duplicate symbol _OBJC_CLASS_$_PodsDummy_nanopb in:
/Users/<username>/Library/Developer/Xcode/DerivedData/<product-instance>/Build/Products/Debug-iphoneos/nanopb/libnanopb.a(nanopb-dummy.o)
<product-name>/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
duplicate symbol _OBJC_METACLASS_$_PodsDummy_nanopb in:
/Users/<username>/Library/Developer/Xcode/DerivedData/<product-instance>/Build/Products/Debug-iphoneos/nanopb/libnanopb.a(nanopb-dummy.o)
<product-name>/Plugins/cordova-plugin-firebase/nanopb.framework/nanopb(nanopb-dummy.o)
ld: 7 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried to remove cordova-plugin-firebase-dynamiclinks from my project and it works.
My questions is, how should I remove the duplication in this case since my app need to use both phone auth and dynamic links features.
Please help.
Thank You.
Hi, anyone facing the same issue?
I really need help on this, @robertarnesson understand that maybe you are busy, appreciate if you can give me some direction. Thank You.
i am facing the same issue. any solution?
+1 same issue
@xsoul , did you find a solution or a workaround?
+1 here.
same issue here
@xsoul @sonugpc @scartick @florent1933 @adamschnaare @leonardomontes Can you check out version 2.X of this plugin. We have updated the firebase library to the latest version. This might have resolved the issue.
v2.0.1 still has the issue
I think this is likely due to Frameworks and Cocoa pods being in the same project. Two possible solutions that I can see:
This plugin doesn't have any full time developers so it relies on community members to submit features and bug fixes. Since it seems that a number of people are enountering this, we would gladly take Pull Requests for eitehr option. Please see the Contributing Guidelines to see how easy it is to submit code.
We are also having the same issue. Reaching out to the community members to help fix this issue. @briantq have you found any other solution yet?
@super9xman I have not. I believe the two options for users encountering this issue are the ones proposed in my previous comment.
@briantq , unfortunately those two options will not work for us. We cannot get rid of the firebase plugin we are using...and number 2 is not where I can help much :(
Same here,
I'm having 1093 duplicate symbols...
Here is my cordova plugin list
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-crop 0.3.1 "CropPlugin"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 4.0.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-firebase-messaging 1.2.1 "FirebaseMessagingPlugin"
cordova-plugin-googleplus 6.0.0 "Google SignIn"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.3.1 "cordova-plugin-ionic-webview"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-toast 2.7.2 "Toast"
cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.2.1 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"
my ionic info :
Ionic:
ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.11.4
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.3
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 16 other plugins)
System:
ios-deploy : 2.0.0
NodeJS : v10.3.0 (/usr/local/Cellar/node/10.3.0/bin/node)
npm : 6.1.0
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
@briantq +1 for the first solution you proposed as well (bringing DynamicLinks into this plugin). I wish I was a native dev so I could help out, but I did poke around the source of the existing plugin, and it seems pretty small/doable, at least?
Also, it looks like there's been some external progress on #672 so maybe option #2 is more viable now too?
Most helpful comment
I think this is likely due to Frameworks and Cocoa pods being in the same project. Two possible solutions that I can see:
This plugin doesn't have any full time developers so it relies on community members to submit features and bug fixes. Since it seems that a number of people are enountering this, we would gladly take Pull Requests for eitehr option. Please see the Contributing Guidelines to see how easy it is to submit code.