Unity xcode project won't compile...

After I built the project and it opens in xcode I try to build for an iPhone 4 simulator but I get 999+ errors, some of which are:

“UnitySendTouchesMoved(NSSet*,
UIEvent*)”, referenced from:
“UnityDidAccelerate(float, float,
float, double)”, referenced from:
“Register_UnityEngine_AnimationEvent_Destroy()”,
referenced from:
“Register_UnityEngine_AudioReverbZone_get_roomLF()”,
referenced from:

And it goes on and on…

Any ideas how to fix?

set sdk version in the player settings to ios simulator and then rebuild the application .it should work.