Duplicate symbol issues

后端 未结 8 895
Happy的楠姐
Happy的楠姐 2020-12-24 00:22

During a refactor of an iOS project, I ran into this bear of a bug. During the linking phase, I get this message:

ld: duplicate symbol _OBJC_IVAR_$_Ti

8条回答
  •  春和景丽
    2020-12-24 01:12

    I happened to have included the .h file and the .m file twice in the project. Once I removed the second copy, the error went away.

提交回复
热议问题