duplicate symbols for architecture i386 clang

后端 未结 24 1228
悲哀的现实
悲哀的现实 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:56

    I had this issue with a framework that I knew worked in another project. I had copied the files from the other project and added it to this one. Then when building I got 76 duplicate errors.

    The simple solution for me was removing -ObjC from Other Linker Flags. The previous project did not have that. Once I did that, the warning disappeared and the project built successfully.

提交回复
热议问题