I came across this error when launching the UIImagePickerController from one of my iPad apps that is designed for landscape mode only.
*** Terminating app due to uncaught exception ‘UIApplicationInvalidInterfaceOrientation’, reason: ‘Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES’
As a workaround, I found the following solution from the developer forums. The solution for landscape-only apps built using the iOS 6 SDK was to implement the application:supportedInterfaceOrientationsForWindow: belonging to the App Delegate. For example,
@implementation AppDelegate
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
return UIInterfaceOrientationMaskAll;
else /* iphone */
return UIInterfaceOrientationMaskAllButUpsideDown;
}
For the complete solution should this work around not solve your problem can be found here.