Reputation: 9
My iOS app got rejected due to Guideline 4.0 - Design because it didn't display properly on iPad. However, I want my app to be available only for iPhones and not for iPads.
I already removed the iPad from the "Supported Destinations" in Xcode by deleting it from the destination list, but I'm not sure if that's enough.
Here’s what I’ve done so far:
Removed iPad from "Supported Destinations" in Xcode. Ensured my app is designed only for iPhones. Is there anything else I need to configure to make sure my app is strictly for iPhones and not available for iPads?
Upvotes: 0
Views: 41
Reputation: 1
1. Update the Deployment Info in Xcode Open your Xcode project. Select the Target of your app. Go to the General tab. Under Deployment Info, set: Devices: Select iPhone instead of "Universal".
2. Modify Info.plist to Exclude iPad If your app supports only iPhones but still gets reviewed on iPads, add the following key in Info.plist:
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
This makes iPads believe your app only supports portrait mode and prevents installation.
3. Verify Your App Store Settings Go to App Store Connect → Select your app. Under General → App Information, ensure iPhone is selected under Device Families.
4. Check Your Code for iPad-Specific Implementations Make sure:
You are not using UIDevice.current.userInterfaceIdiom == .pad. You do not have any iPad-specific UI in Main.storyboard.
Upvotes: -2
Reputation: 427
UIDeviceFamily
to 1 in Info.plistHowever, as far as I can tell iOS apps will always run on iPads, these settings will just constraint it to running not in a 'fullscreen' so that your interface won't be broken.
Upvotes: -1