ios8build-errorxcode6.4

ld: 2 duplicate symbols for architecture x86_64


I am a beginner in iOS development. I am developing an application in Xcode 6.4 and I want create a SQlite database in Project. When I am trying to add constant, connection manager and query helper classes in bundle file and build project, I have the following error:

ld: 2 duplicate symbols for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

enter image description here


Solution

  • Thanks to all comment on my question,

    I found the solution of ld: 2 duplicate symbols for architecture x86_64, at time of declaration of constant for table name variable, I have used NSObject class file for constant declaration,However this is not correct way to declare constant variable so I used "Header File" and declared constant variable as like below ,

     #define registration_table @"registration_table"
    

    UPDATED

    If we import .m file instead of .h file that time also we facing duplicate symbols for architecture x86_64 exception, check import file .

    Hope so it will help to someone