ConnectSDK / Connect-SDK-Cordova-Plugin

Cordova/PhoneGap plugin for Connect SDK
Apache License 2.0
69 stars 46 forks source link

Duplicate symbol error when building for ios #54

Open dakar89 opened 8 years ago

dakar89 commented 8 years ago

I get the "duplicate symbol"-error when i try to build a cordova app for ios. The error seems so be caused by having another plugin installed that also uses the GCDWebServer (CordovaLocalWebServer).

So, because the GCDWebServer-files are located inside the ConnectSDK.framwork, they will conflict with the GCDWebServer-files locatated in my Plugins-folder in the XCode project.

This is the first "duplicate symbol"-error and it's followed by many more, all referring to "GCDWebServer": duplicate symbol _OBJCCLASS$_GCDWebServerErrorResponse in: /Users/me/cordova/platforms/ios/build/MyApp.build/Debug-iphonesimulator/My-App.build/Objects-normal/i386/GCDWebServerErrorResponse.o MyApp/Plugins/cordova-plugin-connectsdk/ConnectSDK.framework/ConnectSDK(GCDWebServerErrorResponse.o)

My installed plugins: cordova-labs-local-webserver 2.4.0 "CordovaLocalWebServer" cordova-labs-wkwebview-engine-localhost 0.5.0 "Cordova WKWebView Engine with http server (localhost) support" cordova-plugin-connectsdk 1.6.0 "Connect SDK" cordova-plugin-wkwebview-engine 1.0.3 "Cordova WKWebView Engine"