取代系統UDID的4種方式

http://maniacdev.com/2012/03/apps-using-udids-being-rejected-by-apple-heres-how-to-generate-replacements-quickly


這篇文章中提到apple開始針對使用系統取得UDID的app做Reject的動作了,其實這消息之前就知道了,只不過沒被Reject過加上UDID還是可以繼續取得,所以在app裡一直沒換掉,不過這就有點像定時炸彈,還是早點換掉比較保險一點。

作者提供了兩種簡單的方式:
MAC Address Based UUID Replacements
基於Mac Address的方式使用George Kitz所撰寫的library,下載位置

https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5


Non-MAC Address  Based  UUID Replacements
不使用Mac Address的方式產生UUID則使用

http://oleb.net/blog/2011/09/how-to-replace-the-udid


補充:
cseserv推薦的

https://github.com/ylechelle/OpenUDID 更方便使用。

mainchen分享的 SecureUDID :

https://github.com/crashlytics/secureudid

posted @ 2012-04-12 18:26  曙光中睡懒觉  阅读(200)  评论(0)    收藏  举报