suji
suji

Reputation: 1470

llvm-gcc-4.2 failed with xcode error in iphone

This may be a simple problem.

But im totally stuck with this error.

I integrated three 20 into my project.

I integrated the Sharekit also into the project and three20.

But whenever i compile the following error is showing.i can't figure this error.

Can anyone please help me this.Thanks in advace.

Error:

ld: duplicate symbol _OBJC_METACLASS_$_SHKDelicious in /Users/icodingmacmini3/Library/Developer/Xcode/DerivedData/Awesome-gqlhzchmnubhcbetpcfvbiccpdzu/Build/Products/Debug-iphoneos/libThree20UI.a(SHKDelicious.o) and /Users/icodingmacmini3/Library/Developer/Xcode/DerivedData/Awesome-gqlhzchmnubhcbetpcfvbiccpdzu/Build/Intermediates/Awesome.build/Debug-iphoneos/Awesome.build/Objects-normal/armv7/SHKDelicious.o for architecture armv7
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

Upvotes: 0

Views: 359

Answers (2)

Vignesh
Vignesh

Reputation: 10251

When ever you get a duplicate symbol check for imports. Some kind of cycle would have happened. Try importing in .m file rather than .h file it may solve the problem.

Also make sure you have not added the file twice.

Upvotes: 2

Related Questions