iOS:错误 - 架构x86_64的23个重复符号 [英] iOS: Error - 23 duplicate symbols for architecture x86_64
问题描述
看着类似的问题和答案,这个错误消息似乎可以源自各种不同的领域。希望有人可以帮助我弄清楚我的问题。我得到这个错误时运行在模拟器上,没有在设备上运行的问题。
$ b
错误讯息
ld:架构的23个重复符号x86_64
详情 b
这似乎已经开始,当我添加Twitter API。所有错误消息都表示以下之一:
重复符号_STTwitterAppOnlyErrorCode:
重复符号_STTwitterAPIErrorCode:
重复符号_STTwitterHTMLErrorCode:
重复符号_STTwitterOSErrorCode:
重复符号_STTwitterOAuthErrorCode in:
我到目前为止做的是:
1)查找重复文件,没有
2)查找重复的#import语句,没有
3)检查我是否在.m文件上有#import,我没有
4)我没有-ObjC在其他链接器标志
那么任何人都有一个想法,我可以做些什么来摆脱这个错误信息?
您使用的是最新版本的ST API吗?
我注意到一个注释,头文件中的一些NS_ENUM定义更改为extern NS_ENUM,以避免重复的符号。
https:// github。 com / nst / STTwitter / pull / 189 / files
看起来像您的问题?
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?
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?
这篇关于iOS:错误 - 架构x86_64的23个重复符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!