Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when linking #10

Open
vgkanis opened this issue Feb 21, 2017 · 1 comment
Open

Error when linking #10

vgkanis opened this issue Feb 21, 2017 · 1 comment

Comments

@vgkanis
Copy link

vgkanis commented Feb 21, 2017

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

@vgkanis
Copy link
Author

vgkanis commented Feb 21, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant