Setting orientation to portrait crash

Please answer these questions to help fix this issue:
What’s the issue?
I have an empty cocos2dx project and I’m trying to set the orientation to Portrait using simulator. I have this code:

What’s the engine version? v3 rc1 and v2.2.3
How to reproduce it?

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    //return UIInterfaceOrientationIsLandscape( interfaceOrientation );
    NSLog(@"shit");
    return UIInterfaceOrientationIsPortrait( interfaceOrientation );
}

- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
    NSLog(@"shit2");
    return UIInterfaceOrientationMaskPortrait;
#endif
}

- (BOOL) shouldAutorotate {
    return YES;
}

This code logs “shit2”

I’m using Xcode 5.1, iOS simulator | iOS 7.1

Solved it by changing this in the project settings: