类'Foo'的重复接口声明 [英] Duplicate interface declaration for class 'Foo'

查看:113
本文介绍了类'Foo'的重复接口声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的程序上工作,它似乎在设置中的东西改变了。突然我有错误复制接口声明类'Foo'。

I was working on my program, and it seems something in the settings changed. Suddenly I have the error "Duplicate interface declaration for class 'Foo'". It mentions a header file being duplicated but there's only one copy.

有趣的是,这只会在调试模式下发生,而不会在设备模式下发生。

Interestingly this is only happening in debug mode, not device mode.

有人知道可能有什么错误吗?

Does anyone have any idea what might be wrong?

我使用Objective-C ++和一些静态库。

I am using Objective-C++ and some static libraries.

推荐答案

我发现了问题。有两个副本的头文件和XCode混淆。

I found the problem. There were two copies of the header file and XCode got confused.

现在的谜题是XCode如何决定自己复制这些文件...

Now the mystery is how XCode decided to copy these files by itself ...

这篇关于类'Foo'的重复接口声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆