duplicate symbols for architecture i386 clang

后端 未结 24 1201
悲哀的现实
悲哀的现实 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 21:10

    I had this error after I copy & paste a test file into the project, forgetting to change the name of the interface and implementation lines:

    @interface TDInputValidationsTests : XCTestCase
    

    and

    @implementation TDInputValidationsTests
    

    Silly mistake... I also suggest looking at the "build phases" tab on the project to check for duplicates. Deleting the derived data and making a clean-build might help as well.

提交回复
热议问题