MSU_Bulldog
MSU_Bulldog

Reputation: 3519

iOS: Error - 23 duplicate symbols for architecture x86_64

Looking at similar questions and answers, this error message seems that it could stem from a variety of different areas. Hopefully someone can help me figure out my problem. I am getting this error when running on the simulator, no problems with running on a device.

Error Message

ld: 23 duplicate symbols for architecture x86_64

Details

This seems to have started when I added the Twitter API. All of the error messages either say one of the following:

duplicate symbol _STTwitterAppOnlyErrorCode in:

duplicate symbol _STTwitterAPIErrorCode in:

duplicate symbol _STTwitterHTMLErrorCode in:

duplicate symbol _STTwitterOSErrorCode in:

duplicate symbol _STTwitterOAuthErrorCode in:

What I have done so far is:

1) Looked for duplicate files, there are none

2) Looked for duplicate #import statements, there are none

3) Checked if I did a #import on a .m file, I did not

4) I do not have -ObjC in Other Linker Flags

So does anyone have an idea as to what I can do to get rid of this error message?

Upvotes: 3

Views: 634

Answers (1)

Rory McKinnel
Rory McKinnel

Reputation: 8014

Are you using the latest version of the ST API?

I notice a comment that some NS_ENUM definitions in the header files were changed to extern NS_ENUM to avoid duplicate symbols.

https://github.com/nst/STTwitter/pull/189/files

Seems like your issue?

Upvotes: 3

Related Questions