I am developing an iPhone-only app with TARGETED_DEVICE_FAMILY set to iPhone only.
The app supports Portrait orientation only by specifying UIInterfaceOrientationPortrait in UISupportedInterfaceOrientations.
When I build the app with Xcode 27 RC and run it on an iPadOS 27 Simulator, the layout becomes incorrect when the iPad is rotated to an orientation other than Portrait.
While investigating this issue, I found that adding UISupportedInterfaceOrientations~ipad to Info.plist and specifying all four orientations resolves the problem:
UIInterfaceOrientationPortraitUIInterfaceOrientationPortraitUpsideDownUIInterfaceOrientationLandscapeLeftUIInterfaceOrientationLandscapeRight
With this configuration, the app displays correctly when the iPad is rotated.
However, since this is an iPhone-only app and TARGETED_DEVICE_FAMILY does not include iPad, I am unsure whether using UISupportedInterfaceOrientations~ipad in this situation is an appropriate and supported solution.
My questions are:
- Is it valid to specify
UISupportedInterfaceOrientations~ipadfor an iPhone-only app? - Is this key expected to affect an iPhone-only app when it runs on an iPad?
- Is the behavior I am seeing on iPadOS 27 expected, or should an iPhone-only Portrait app handle this situation differently?
Adding UISupportedInterfaceOrientations~ipad resolves the issue in my testing, but I would like to confirm whether this is an appropriate configuration to use in a production app.
Thank you.