Open vgkanis opened 7 years ago
It turned out that the problem was the following enumeration in the AZSocketIO.h file
NS_ENUM(NSUInteger, AZSocketIOError) { AZSocketIOErrorConnection = 100, AZSocketIOErrorArgs = 3000, };
I replaced it with typedef enum { AZSocketIOErrorConnection = 100, AZSocketIOErrorArgs = 3000, } AZSocketIOError;
and it builds fine
I am totally lost as I can not understand what could be causing this error.
duplicate symbol _AZSocketIOError in: .../Build/Products/Debug-iphonesimulator/AZSocketIO/libAZSocketIO.a(AZSocketIO.o) .../Build/Products/Debug-iphonesimulator/TLKSimpleWebRTC/libTLKSimpleWebRTC.a(TLKSocketIOSignaling.o) ld: 1 duplicate symbol for architecture x86_64
Here is the PodFile pod 'FBSDKCoreKit','~> 4.15.0' pod 'FBSDKLoginKit','~> 4.15.0' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'Google/SignIn' pod 'libjingle_peerconnection' pod 'TLKWebRTC', :git => 'https://github.com/otalk/TLKWebRTC.git' pod 'TLKSimpleWebRTC', :git => 'https://github.com/otalk/TLKSimpleWebRTC.git'
I have removed every single entry to AZSocket library from the project, but I still get this error. Does anybody else have this error?
Also, I copied the content of the xcconfig files for the pods AFNetworking, AZSocketIO, SocektRocket, TLKSimpleWebRTC, and TLKWebRTC from the ios-demo app, but in vain. Thank you