You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

何处能找到UIDeviceFamily取值的官方完整列表?

Official UIDeviceFamily Values for Apple Platforms

Hey there, let's clear up the confusion around the UIDeviceFamily Info.plist field—this is a critical setting for targeting the right Apple devices, so having authoritative sources is key for troubleshooting.

Confirmed, Well-Documented Values

First, the ones you already found in Apple's official Info.plist docs:

  • 1: Targets iOS devices (iPhone, iPod touch)
  • 2: Targets iPadOS/iPad devices

From Apple's official Info.plist reference: The UIDeviceFamily array identifies the device types supported by your app. Each element is an integer corresponding to a device family.

Official Values for Other Platforms

You're right that early versions of the main Info.plist doc only listed 1 and 2, but Apple has expanded this field as new platforms launched. These values are officially confirmed through Xcode's project templates, platform-specific dev docs, and App Store Connect requirements:

  • 3: tvOS (Apple TV) – Create a new tvOS project in Xcode, and you'll see this value pre-filled in the generated Info.plist
  • 4: watchOS (Apple Watch) – Same here: new watchOS projects auto-populate this value
  • 5: macOS – Yes, this exists! It's used for both Catalyst apps (porting iOS/iPadOS apps to macOS) and native macOS apps in newer Xcode versions, and is referenced in Apple's macOS app submission guidelines.

Where to Verify Authoritatively

If you need a rock-solid source for troubleshooting, these are the go-to official channels:

  • Xcode-generated Info.plists: Apple maintains these templates directly, so the pre-filled UIDeviceFamily values are always accurate for the target platform
  • Platform-specific development guides: Apple's tvOS, watchOS, and macOS dev docs explicitly reference the required UIDeviceFamily values when setting up apps for those platforms
  • App Store Connect submission rules: When uploading apps, Apple's validation checks rely on these values to ensure your app is listed for the correct devices—so the requirements here are authoritative.

内容的提问来源于stack exchange,提问作者stevendesu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 08:50:18