duplicate symbol _OBJC_METACLASS_$_ClassName

前端 未结 18 1929
被撕碎了的回忆
被撕碎了的回忆 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:44

    XCode Beta crashed for me while deleting a reference to a class. This caused the problem described in the answer, the fix was different again.

    In my Target's Build Phase, under "Compile Sources", the item giving me grief was red. I couldn't remove it with the minus button, but typing "skip" in the compiler flags caused the red class to disappear after reloading the project. I'm assuming you could type anything in there.

    It took me two hours to find the solution to my prob, I put it in here for another option to those having this problem, although it is probably not going to be a common one.

提交回复
热议问题