Xcode Exit Code 1 - Duplicate Symbol

前端 未结 3 1604
一整个雨季
一整个雨季 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: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.

提交回复
热议问题