Xcode, Duplicate symbol _main

前端 未结 10 879
抹茶落季
抹茶落季 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:35

    Just got this problem myself, but after reading huggie's solution which did lead me on the right track, I was left a bit confused. So current solution in Xcode: Choose project, target -> build phases and click validate settings

    Then Xcode will auto fix its own mistake. It is always nice when the tools tries to stop your progress ;)

提交回复
热议问题