Match XCode Project Deployment Target with Build Target Deployment Target
Remove deprecated iOS 5 calls to shouldAutorotateToInterfaceOrientation