简体   繁体   English

Xcode、iOS 应用程序 - 如何禁用 iPad 和 Mac 兼容性?

[英]Xcode, iOS app - How to disable iPad and Mac compatibility?

I want to release my first iOS app on App Store.我想在 App Store 上发布我的第一个 iOS 应用程序。 I would like to make it iOS only.我只想把它变成 iOS。 Without an option to download and run on iPad and Mac.没有在 iPad 和 Mac 上下载和运行的选项。

However, TestFlight shows me this app on both iPad and Mac.但是,TestFlight 在 iPad 和 Mac 上都向我展示了这个应用程序。

Why can I test my iOS app on iPad when I specifically disabled iPad in Target's Deployment Info?当我在 Target 的部署信息中专门禁用 iPad 时,为什么我可以在 iPad 上测试我的 iOS 应用程序? How to disable it?如何禁用它? How to prevent the app from distributing to iPad and Mac?如何防止应用分发到iPad和Mac?

Deployment info is set to iPhone only.部署信息仅设置为 iPhone。 On App Store Connect I didn't add macOS app.在 App Store Connect 上,我没有添加 macOS 应用程序。 And yet, it's still available in TestFlight and under compatibility it says: iPhone, iPad, macOS.然而,它仍然在 TestFlight 中可用,并且在兼容性下显示:iPhone、iPad、macOS。

在此处输入图像描述

There is an option to prevent the app from being available to M1 macs in App Store Connect under Pricing and availability在 App Store Connect 的定价和可用性下,有一个选项可以防止该应用程序可用于 M1 mac 在此处输入图像描述

Deselect the checkbox and the app won't appear in the Mac App Store.取消选中该复选框,应用程序将不会出现在 Mac App Store 中。

Preventing your app from being installed on iPads is more difficult.阻止您的应用程序安装在 iPad 上更加困难。 Even if your app is not a Universal app with direct iPad support, iPads can download and run iPhone apps in a compatibility mode.即使您的应用程序不是直接支持 iPad 的通用应用程序,iPad 也可以在兼容模式下下载和运行 iPhone 应用程序。

You may be able to limit your app availability by specifying telephony for UIDequiredDeviceCapabilities您可以通过为UIDequiredDeviceCapabilities指定telephony来限制您的应用程序可用性

For XCode 14.x this seems to be configured under General --> Supported Destinations - see Configure the supported destinations for a target section here https://developer.apple.com/documentation/xcode/configuring-a-multiplatform-app-target对于 XCode 14.x,这似乎是在General --> Supported Destinations下配置的 - 请参阅此处的 Configure the supported destinations for a target部分https://developer.apple.com/documentation/xcode/configuring-a-multiplatform-app-目标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM