identifierForVendor在重新安装时更改 [英] identifierForVendor changes on reinstall

查看:324
本文介绍了identifierForVendor在重新安装时更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

identifierForVendor 应该在重新安装app时更改:

identifierForVendor is not supposed to change on reinstall of app:


此属性中的值仍为同样的应用程序(或来自同一供应商的另一个
应用程序)安装在iOS设备上。当用户从
设备中删除所有该供应商的应用程序并随后重新安装其中一个或多个应用程序时,值
会更改。使用Xcode安装测试版本或使用ad-hoc分发在设备上安装
应用程序时,
的值也会发生变化。因此,如果您的app
将此属性的值存储在任何位置,则应优雅地
处理标识符更改的情况。

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.

https://developer.apple.com/reference/uikit/ uidevice / 1620059-identifierforvendor

但是,我刚刚在应用程序商店中使用我们的一个实时应用进行了测试。即使设备上仍然安装了许多其他应用程序,如果我重新安装应用程序A,则每次都会从identifierForVendor返回的UUID更改。

However, I've just tested this with one of our live apps on the app store. Even with a number of other of our apps still installed on the device, if I reinstall app A the UUID returned from identifierForVendor changes every time.

它不是像这样。

这曾经有效。但在某些时候,UUID似乎已经开始改变简单重新安装(如上所述)。这是一个已知的错误?已知identifierForVendor与上述文档相比已被破坏吗?任何解决方法(除了将UUID保存到钥匙串,因为该方法与iCloud同步中断)?

This used to work. But at some point, the UUID seems to have started changing on "simple reinstalls" (as stated above). Is this a known bug? Is identifierForVendor known to be broken versus the documentation above? Any workarounds (other than saving UUID to keychain, because that method breaks with iCloud syncing)?

推荐答案

这是一个已知的错误。似乎Apple对AppStore进行了更新,导致在5月28日左右为identifierForVendor引发这种新行为。如果您在App Developer论坛中搜索,则有其他开发人员报告相同的问题。

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.

来自Apple的签名gc已就此问题回复了以下答案:
请在https://developer.apple.com/bug-reporting >。我们已经意识到这个问题正在调查中。目前还没有已知的解决方法。

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."

这篇关于identifierForVendor在重新安装时更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆