0

While running the code i am getting following errors can anyone help me with this

ld: duplicate symbol _OBJC_METACLASS_$_FBSession in /Users/Rachit/mobileapps/iphone/XYZ copy/build/ApostekApp.build/Distribution adhoc-iphoneos/APPNAME.build/Objects-normal/armv6/FBSession-B9CA0037BD5C5F44.o and /Users/Rachit/mobileapps/iphone/XYZ copy/build/ApostekApp.build/Distribution adhoc-iphoneos/APPNAME.build/Objects-normal/armv6/FBSession-B9CA0037BD5C5F44.o

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Abizern
  • 146,289
  • 39
  • 203
  • 257
Rachit Singhal
  • 75
  • 1
  • 14
  • This helped me: http://stackoverflow.com/questions/1490847/developer-platforms-iphonesimulator-platform-developer-usr-bin-gcc-4-2-failed-wi/6767918#6767918 – Planky Jul 21 '11 at 16:29
  • possible duplicate of [Command /usr/bin/codesign failed with exit code 1](http://stackoverflow.com/questions/2017756/command-usr-bin-codesign-failed-with-exit-code-1) – Brad Larson Sep 07 '11 at 22:09

2 Answers2

0

I've bumped in to this before. I am not 100% sure, but this is my theory:

This may occur when a variable is declared outside the interface in a header file. As the header file is included by several other classes, you get a conflict. If you have such a variable, try putting it inside the @implementation.

Alexander Wallin
  • 1,394
  • 10
  • 22
0

Probably not your exact problem, but may help others finding this Q.

Among other things, 'failed with exit code 1' linker errors can be caused if one of the files (.h, .m) in your project is missing.

William Denniss
  • 16,089
  • 7
  • 81
  • 124