TestFlight alert while testing update: You already have this app installed

こ雲淡風輕ζ 提交于 2019-12-03 01:42:40
Lukas Kukacka

After long research, trials and errors, creating radar and releasing update to App Store, I have an answer:

Alert is there always and does not have relation to losing data.

  • The alert with warning about possible lose of data is being displayed always for any app being installed from TestFlight over the Non TestFlight Build.
  • This was true for any of multiple apps I have tried.

identifierForVendor changes when overwriting app with TestFlight build.

  • When you have App Store version of the app installed and overwrite it with build from TestFlight, result of [[UIDevice currentDevice] identifierForVendor] changes
  • This is unexpected since it is not mentioned in the documentation (see below)
  • In my case unexpected change of identifierForVendor was causing "loose of data" which wasn't actual lose of data, but it is happening only for TestFlight builds which you cannot debug, so it was hard to find the issue.

Documentation of [[UIDevice currentDevice] identifierForVendor] says:

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.

as per best of my knowledge,

if you have installed application from App Store (suppose of version number 1.0) on your device, and lets say your are again downloading/installing same app with same version number 1.0 from TestFlight, you will get above message.

This is because you are trying to install app with same version and bundle id that already does exists on device.

Offcourse you will lose data/settings of app, as its replacing your app not updating.

I also gone through this scenario.

If you have the full version of an app installed on your device and you install the same Beta App, your app data may be corrupted or lost and may not be recoverable. You should back up your information before installing a Beta App.

http://www.apple.com/legal/internet-services/itunes/testflight/sren/terms.html


I don't know how this happens

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!