identifierForVendor 是否随应用程序更新而改变?

Does identifierForVendor change on app update?

我听说 UIDevice.identifierForVendor 在 App Store 的应用程序更新期间发生了变化。

This answer goes like "...There was a bug affecting the calculation of identifierForVendor when updating an app from app store...". See corresponding big report at rdar://22677034.

你遇到过这样的问题吗?
这是一个已修复的错误吗?

根据 the official documentation,简单的重新安装应该不会影响 identifierForVendor

但是,记录在案的行为是,如果满足条件,标识符会发生变化。 不要假设 identifierForVendor 始终保持不变。总是会出现系统错误地将更新识别为重新安装等的边缘情况。

来自上面链接的文档:

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.