TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by Takahiro Ooishi.
Generate UUID and save to KeyChain.
pod 'TAKUUID'
or
pod 'TAKUUID', :git => 'https://github.com/taka0125/TAKUUID.git'
First of all, set keychain access group.
Then call findOrCreate
.
[TAKUUIDStorage sharedInstance].accessGroup = @"12ABCD3E4F.shared";
TAKUUIDStorage.sharedInstance().accessGroup = "12ABCD3E4F.shared"
after set keychain access group, call migrate
method.
[[TAKUUIDStorage sharedInstance] migrate];
TAKUUIDStorage.sharedInstance().migrate()
If UUID already created, return it. If not creating UUID yet, create and return it.
NSString *UUID = [[TAKUUIDStorage sharedInstance] findOrCreate];
let UUID = TAKUUIDStorage.sharedInstance().findOrCreate()
renew UUID.
NSString *UUID = [[TAKUUIDStorage sharedInstance] renew];
let UUID = TAKUUIDStorage.sharedInstance().renew()
remove UUID from Keychain.
BOOL isSuccess = [[TAKUUIDStorage sharedInstance] remove];
let isSuccess = TAKUUIDStorage.sharedInstance().remove()
get last error.
OSStatus status = [TAKUUIDStorage sharedInstance].lastErrorStatus;
let status = TAKUUIDStorage.sharedInstance().lastErrorStatus
$ macerror CODE