Xcode Exit Code 1 - Duplicate Symbol

喜你入骨 提交于 2019-11-30 10:47:22

It looks like you have two targets set up and your source is getting used in both. So, you create a static library with the sunnyHillsTL class that gets put into libcocoas2d libraries.a and then you are using the same object file as well. Either don't directly use the class in your target (don't add the class to the target) if you're using the library, or don't have this class be compiled as part of the static library.

Seems like you have two instance variables named «tileMap» in your «sunnyHillsTL» class...

install Command Line Tools from your Xcode. in Xcode -> Preferences -> Downloads -> Components ->Command Line Tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!