Reputation: 1457
I'm finding that the UUID I get is different depending on whether the app is directly installed by xcode (which I do during development) or through testflight.
let uuidstring = UIDevice.current.identifierForVendor!.uuidString
Is it possible to get a UUID that is the same in both cases?
Ideally a UUID that is truly a unique device identifier, and doesn't change if the app is removed and added, which seems to change the UUID currently.
Upvotes: 3
Views: 3250
Reputation: 969
As the documentation 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.
This is the reason why reinstalls will change the UUID for an App.
Upvotes: 3