Generate and save permanent UDID with IDFV and keychain in iOS device.
Use IDFV(identifierForVendor)
+ keychain
to make sure UDID consistency, even if the App has been removed or reinstalled.
A replacement for the deprecated mean of OpenUDID
.
Available through CocoaPods, simply add the following line to your Podfile:
pod 'ZKUDID', '~> 2.0'
Available through Carthage, simply add the following line to your Cartfile:
github "mushank/ZKUDID" ~> 2.0
Noti: Requires iOS 6.0 or later
It's so simple, just two lines of code:
#include "ZKUDID.h"
NSString *UDIDString = [ZKUDID value];
(null)
, please check your KeyChain Entitlemen
setting: Go to project settings->Capabilities->Keychain Sharing->Add Keychain Groups+Turn On. It usually happens in iOS 10.
They are in the ZKUDID
folder:
ZKUDID.h
ZKUDID.m
Now, enjoy yourself!
ZKUDID is released under MIT License.