https://github.com/mushank/ZKUDID
Generate and save permanent UDID with IDFV and keychain in iOS device.
https://github.com/mushank/ZKUDID
carthage cocoapods identifierforvendor idfv ios keychain objective-c udid uuid
Last synced: about 1 year ago
JSON representation
Generate and save permanent UDID with IDFV and keychain in iOS device.
- Host: GitHub
- URL: https://github.com/mushank/ZKUDID
- Owner: mushank
- License: mit
- Created: 2016-02-21T05:43:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T10:16:25.000Z (about 9 years ago)
- Last Synced: 2024-10-29T21:03:33.523Z (over 1 year ago)
- Topics: carthage, cocoapods, identifierforvendor, idfv, ios, keychain, objective-c, udid, uuid
- Language: Objective-C
- Homepage:
- Size: 48.8 KB
- Stars: 158
- Watchers: 6
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZKUDID
[](https://travis-ci.org/mushank/ZKUDID) [](https://github.com/Carthage/Carthage) [](http://cocoapods.org/?q=ZKUDID) [](http://www.apple.com/ios) [](https://github.com/mushank/ZKUDID/blob/master/LICENSE)
**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`.*
## Install
#### CocoaPods
Available through [CocoaPods](http://cocoapods.org/), simply add the following line to your Podfile:
```
pod 'ZKUDID', '~> 2.0'
```
#### Carthage
Available through [Carthage](https://github.com/Carthage/Carthage), simply add the following line to your Cartfile:
```
github "mushank/ZKUDID" ~> 2.0
```
*Noti: Requires iOS 6.0 or later*
## Usage
It's so simple, just two lines of code:
```
#include "ZKUDID.h"
NSString *UDIDString = [ZKUDID value];
```
⚠️***Attention:*** *If you get the 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.
## Source files
They are in the `ZKUDID` folder:
- `ZKUDID.h`
- `ZKUDID.m`
Now, enjoy yourself!
## License
ZKUDID is released under [MIT License](https://github.com/mushank/ZKUDID/blob/master/LICENSE).