// 在 macOS target 下故意编译失败:UIKit 只在 iOS target 可用。 // 复现:swiftc -typecheck Diagnostics/UIKitOnMac.swift import UIKit let device = UIDevice.current.systemName