{"forkee":{"id":146562144,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY1NjIxNDQ=","name":"DeviceIdentifier","full_name":"huangqizai/DeviceIdentifier","owner":{"login":"huangqizai","id":30858010,"node_id":"MDQ6VXNlcjMwODU4MDEw","avatar_url":"https://avatars3.githubusercontent.com/u/30858010?v=4","gravatar_id":"","url":"https://api.github.com/users/huangqizai","html_url":"https://github.com/huangqizai","followers_url":"https://api.github.com/users/huangqizai/followers","following_url":"https://api.github.com/users/huangqizai/following{/other_user}","gists_url":"https://api.github.com/users/huangqizai/gists{/gist_id}","starred_url":"https://api.github.com/users/huangqizai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangqizai/subscriptions","organizations_url":"https://api.github.com/users/huangqizai/orgs","repos_url":"https://api.github.com/users/huangqizai/repos","events_url":"https://api.github.com/users/huangqizai/events{/privacy}","received_events_url":"https://api.github.com/users/huangqizai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangqizai/DeviceIdentifier","description":"iOS一直都比较注重用户隐私，在 iOS 5.0之后系统UDID方法就被废弃掉了，iOS 7中mac地址又被封杀，所有获取mac都将返回统一值02:00:00..，虽然iOS 6.0新增了两个用于替换UDID的接口，分别是：identifierForVendor，advertisingIdentifier(有时可能获取不到)，但这两个接口会在相同开发组下的应用删除完后重新安装应用时数值会发生改变，并不是唯一的标示符。经过对钥匙串及iCloud同步的多方面了解，如果通过系统钥匙串保存一串字符串，且不允许它同步到其他设备，这样不就可以生成一个真正意义上的唯一ID了麽，而且还不会被苹果封杀，即使identifierForVendor的值发生了改变它也依然不变，除非执行设备“抹除所有内容和设置”这一项操作。鉴于网上很多类似原理生成唯一ID的资料要么是依赖了SAMKeyChains库，要么是需要加载KeychainItemWrapper类文件，感觉有点麻烦，于是动手封装了以下类，它不需要你加载其它类库，随拷贝随用。","fork":true,"url":"https://api.github.com/repos/huangqizai/DeviceIdentifier","forks_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/forks","keys_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/teams","hooks_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/hooks","issue_events_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/issues/events{/number}","events_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/events","assignees_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/assignees{/user}","branches_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/branches{/branch}","tags_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/tags","blobs_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/statuses/{sha}","languages_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/languages","stargazers_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/stargazers","contributors_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/contributors","subscribers_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/subscribers","subscription_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/subscription","commits_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/contents/{+path}","compare_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/merges","archive_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/downloads","issues_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/issues{/number}","pulls_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/pulls{/number}","milestones_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/milestones{/number}","notifications_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/labels{/name}","releases_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/releases{/id}","deployments_url":"https://api.github.com/repos/huangqizai/DeviceIdentifier/deployments","created_at":"2018-08-29T07:27:54Z","updated_at":"2018-08-14T02:57:40Z","pushed_at":"2017-03-29T11:18:48Z","git_url":"git://github.com/huangqizai/DeviceIdentifier.git","ssh_url":"git@github.com:huangqizai/DeviceIdentifier.git","clone_url":"https://github.com/huangqizai/DeviceIdentifier.git","svn_url":"https://github.com/huangqizai/DeviceIdentifier","homepage":"http://www.jianshu.com/p/791f4784e73a","size":19,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","public":true}}
{"actor":{"display_login":"huangqizai"}}