duplicate symbol _OBJC_METACLASS_$_ClassName

前端 未结 18 1925
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 15:10

I am trying to run my cocos2d application and facing this error, as I have recently upgraded my sdk to 4.2 and my cocos2d to 0.99.5.

I tried to clean my project even

18条回答
  •  独厮守ぢ
    2020-12-15 15:59

    Another reason for this, for those out there who did the same as I just did, might be that you re-created a managed object class. By doing that and choosing another group in the project structure, you accidentally create another reference to the same files.

    I ended up with two references for header and implementation in both the root of the project and in my model group. Removing the topmost references to .h and .m files got rid of the linking failure.

提交回复
热议问题