1

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

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Jaywant Khedkar
  • 5,941
  • 2
  • 44
  • 55

2 Answers2

1

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

Jaywant Khedkar
  • 5,941
  • 2
  • 44
  • 55
0

duplicate symbols 'NotificationTable' in both files, in my case ,just rename one of them and it works!