iOS 的设备标识符ForVendor UUID 是否始终相同?

Will iOS's device identifierForVendor UUID always be the same?

if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
        return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    }

这会改变吗?我本来想用 MAC 地址,但显然 7+ 没有 return 它。我从我正在开发的开发应用程序中调用了它,并读到它是使用 bundle id 计算的。

Post 应用商店发布,这会永远一致吗?

来自UIDevice class reference

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

我认为您无法从设备获取 UDID。它需要一些配置文件安装,或者用户使用iTunes系统。

所以,UDID 是不变的,但这不是您在那里要求的。我不确定是否有办法找到它。我认为这是出于安全原因。

The value of this property is the same for apps that come from the same vendor running on the same device.