Xcode duplicate symbol _main .

Posted by Prithvi Raj on Stack Overflow See other posts from Stack Overflow or by Prithvi Raj
Published on 2010-03-29T00:58:32Z Indexed on 2010/03/29 1:03 UTC
Read the original article Hit count: 936

Filed under:
|
|
|
|

I'm getting the following error in Xcode 3.2.1 on Snow Leopard 10.6.2 whenever I try to compile any iPhone application generated by Appcelerator's Titanium . However , the build error only appears when I select iPhone simulator on the architecture menu , and if I select iPhone device , I am able to run the app on my device .

Further , the iPhone simulator launches successfully and executes the program directly from the Titanium environment , which uses Xcode to build .

Why is this happening ?

ld: duplicate symbol _main in Resources/libTitanium.a(main.o) and /Users/prithviraj/Documents/project/Final/build/iphone/build/Final.build/Debug-iphonesimulator/Final.build/Objects-normal/i386/main.o collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

© Stack Overflow or respective owner

Related posts about iphone

Related posts about titanium