Xcode, Duplicate symbol _main

前端 未结 10 882
抹茶落季
抹茶落季 2020-11-30 03:14

I have duplicate symbol _main.

The problem is it says \"Duplicate symbol _main in /Users/.../i386/main-B9843B6026D6EFA4.o and /Users/.../i386/main-B9843B6026D6EFA4.o

10条回答
  •  醉酒成梦
    2020-11-30 03:36

    In my case, I had imported another project, in order to utilize a library contained within. It resulted my project having two main.m files.

    This was even more confusing, since the error didn't show up until several builds later.

提交回复
热议问题