identifierForVendor changes on reinstall

前端 未结 3 1405
耶瑟儿~
耶瑟儿~ 2020-12-24 09:19

identifierForVendor is not supposed to change on reinstall of app:

The value in this property remains the same while the app (or anot

相关标签:
3条回答
  • 2020-12-24 09:23

    We are about to resubmit using an App Group entitlement to give us shared NSUserDefaults. It sounds like App Group NSUserDefaults (unlike keychain-access-group and iCloud key-value storage entitlements) are shared on the device, but not over the iCloud account. If the shared "deviceid" NSUserDefault key doesn't exist, we'll save the IdentifierForVendor ID and then use that for all our apps once it saved.

    0 讨论(0)
  • 2020-12-24 09:33

    identifierForVendor is expected to change when all vendor's apps are removed from the device. Also, it is bound to change if you're building and installing from Xcode directly.

    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.

    Source: UIKit/UIDevice/identifierForVendor

    0 讨论(0)
  • 2020-12-24 09:47

    It's a known bug. It seems like Apple made an update to AppStore that causes this new behavior for identifierForVendor around the 28:th May. If you search in the App Developer forum, there are other developers reporting the same problem.

    The signature gc from Apple have replied on the issue with the following answer: "Please file bug reports on this at https://developer.apple.com/bug-reporting>. We're aware of this issue and are investigating. There's no known workaround at this time."

    0 讨论(0)
提交回复
热议问题