Duplicate Symbol Error in Objective-C build?

前端 未结 17 2038
礼貌的吻别
礼貌的吻别 2020-11-27 14:12

I got this error when I press build+debug:

ld: duplicate symbol .objc_class_name_BlogTableItemCell in /Users/fabian/Development/Workspaces/iphone_experiments         


        
17条回答
  •  悲&欢浪女
    2020-11-27 15:15

    It seems that you are compiling the same BlogTableItemCell class two times in different places of your code. This may happen in the following cases.

    • You have put the same class implementation into two different files;

    • You actually have just one implementation of this class, however you are also linking in your project a framework or library containing a class whose name is exactly the same of yours.

    Try finding in the whole project your class and make sure only one copy is available within your project.

提交回复
热议问题