iOS Build Failed on Empty Project

Glad if you experts can help!

When i tried to build an empty project to ios for iphone simulator , in xcode it failed with following errors:

Apple Mach-O Linker Error: Linker command failed with exit code 1 (use -v to see invocation)

I have seen many post regarding this error, but i was not able to find a working solution.

i am using unity 3.5.7, iOS free,Xcode 4.4(installed from a downloaded dmg file)

When i target the iphone device in unity build settings i am getting some 200+ linker errors, and when targeting simulator, only one error occurs.

But one observation i made was in the build settings in xcode. When building for iphone device the architecture was set to armv7 but when i am building for simulator the architecture is i386(i suppose that is architecture of mac osx).This also throws some warning like:

Warning: no rule to process file '$(PROJECT_DIR)/Icon@2x.png' of type image.png for architecture i386

i am very new to mac and its rules…please help…atleast i can start by building an empty project.:smile:

Thanks in advance:smile:

When building for simulator in Unity 3.5.x, open PlayerSettings, choose simulator SDK, hit build and then select simulator build target in Xcode.

thanks for your reply…

i think i have followed what you said upto the point of build in unity…

yes i got it…changed the target in scheme…and its working…

a lot of thanks mantas:smile: