duplicate symbols for architecture i386 clang

后端 未结 24 1166
悲哀的现实
悲哀的现实 2020-11-29 20:33

I\'ve seen several posts on google and stackoverflow related to this error, I\'ve read all of them but still fetching the problem , I will be glad for a solution. Here is th

24条回答
  •  北海茫月
    2020-11-29 20:45

    Note to self: "READ THE ERROR!"

    In my case it says this: duplicate symbol _OBJC_CLASS_$_SATCoreData in:

    Translation: an Objective C Class called SATCoreData is duplicated.

    Then it gives the path to both occurrences of the symbol. Reading the path points to the two the class file ending in .o. If you look at both classes you will find something fishy. In my case I had accidently given two classes the same name. One class I had inside the file of another class because I was testing something and was too lazy to make a separate class. Hope this helps someone.

提交回复
热议问题