diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index f4990c5a2c..37310d1f2c 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -3202,11 +3202,15 @@ private: if (settingsString.contains ("portrait")) orientations.add ("UIInterfaceOrientationPortrait"); if (settingsString.contains ("landscape")) orientations.addArray ({ "UIInterfaceOrientationLandscapeLeft", - "UIInterfaceOrientationLandscapeRight" }); - if (i == 0) - iPhoneScreenOrientationValue = orientations; - else - iPadScreenOrientationValue = orientations; + "UIInterfaceOrientationLandscapeRight" }); + + if (! orientations.isEmpty()) + { + if (i == 0) + iPhoneScreenOrientationValue = orientations; + else + iPadScreenOrientationValue = orientations; + } } } }