Xcode Exit Code 1 - Duplicate Symbol

前端 未结 3 1603
一整个雨季
一整个雨季 2021-01-01 06:05

Sorry I know this has been covered all over the place, only I can\'t fix this to save my life.

If someone could explain clearly what I might have done and what I mig

相关标签:
3条回答
  • 2021-01-01 06:13

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

    0 讨论(0)
  • 2021-01-01 06:15

    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.

    0 讨论(0)
  • 2021-01-01 06:34

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

    0 讨论(0)
提交回复
热议问题