This is a sign that two plugins are attempting to define the same function/class. This is most frequently caused by the presence of the following plugins.
- cordova-plugin-console - The features of this plugin are included in cordova-ios 4.5.x and higher. The plugin should be removed when using cordova-ios 4.5.x
- ionic-plugin-deploy - This is the deprecated plugin for ionic cloud deploy. It should be removed. This plugin is replaced by cordova-plugin-ionic. If both plugins are present ios builds will fail.
cordova-plugin-console build log example:
❌ duplicate symbol _OBJC_CLASS_$_CDVLogger in
> CDVLogger.o
> libCordova.a(CDVLogger.o)
❌ duplicate symbol _OBJC_METACLASS_$_CDVLogger in
> CDVLogger.o
> libCordova.a(CDVLogger.o)
❌ ld: 2 duplicate symbols for architecture arm64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
duplicate symbol _OBJC_METACLASS_$_CDVLogger in: /Users/ionic/Library/Developer/Xcode/DerivedData/... /Users/ionic/Library/Developer/Xcode/DerivedData/...
ld: 2 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
ionic-plugin-deploy build log example:
❌ duplicate symbol _OBJC_CLASS_$_UNIJsonNode in
> UNIJsonNode-F6CDF626C939C883.o
> UNIJsonNode-A1D9FC5DD6BCC276.o
❌ duplicate symbol _OBJC_METACLASS_$_UNIJsonNode in
> UNIJsonNode-F6CDF626C939C883.o
> UNIJsonNode-A1D9FC5DD6BCC276.o
/Users/ionic/Library/Developer/Xcode/DerivedData/...
/Users/ionic/Library/Developer/Xcode/DerivedData/...
duplicate symbol _OBJC_METACLASS_$_UNIJsonNode in:
/Users/ionic/Library/Developer/Xcode/DerivedData/...
/Users/ionic/Library/Developer/Xcode/DerivedData/...
Comments
0 comments
Article is closed for comments.