Duplicate interface declaration for class 'Foo

2020-02-10 02:40发布

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?

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

13条回答
祖国的老花朵
2楼-- · 2020-02-10 03:33

Had same issue, seemed that I had one too many class.m files in my project.pbxproj file.

Always back up that file before editing it just in case!

查看更多
登录 后发表回答