1

Is there a way to get a unique device Identifier that would be maintained through App deletion/System reinstallation/User changes (different users would get same ID)? It seems that iOS has a bundleIdentifier, but I did not find anything similar for Cocoa.

Edged
  • 29
  • 5
  • Have you tried googling for the words "unique mac identifier"? The first hit is an Apple technote that describes this exactly. – Ssswift Apr 27 '17 at 23:28
  • 1
    It's a 6 year old note, which further investigating seems to show is no longer supported by Apple and their AppStore. – Edged Apr 27 '17 at 23:35
  • IOKit is still supported by Apple, and neither of the functions there is deprecated (as of 10.12). If they don't allow this on the App Store, it must be because they don't want to allow developers to get a unique device ID. – Ssswift Apr 27 '17 at 23:51
  • Since this question clarified/changed to be about the App Store, this looks like a dupe: http://stackoverflow.com/questions/36209097/mac-app-store-app-and-identifierforvendor/36485845 – Ssswift Apr 27 '17 at 23:52
  • Possible duplicate of [Mac App Store App and identifierForVendor](http://stackoverflow.com/questions/36209097/mac-app-store-app-and-identifierforvendor) – Ssswift Apr 27 '17 at 23:52
  • mac has Hardware UUID just don't know how to get it using Swift – Leo Dabus Apr 28 '17 at 01:17
  • Does this help http://stackoverflow.com/a/31838645/1187415 ? – Martin R Apr 28 '17 at 02:32
  • IOKit seems no longer work from some feedback of my clients. – zwcloud Jan 05 '18 at 14:55
  • @MartinR MAC address is no longer a valid unique id. – zwcloud Jan 05 '18 at 14:58
  • @zwcloud: Are you talking about macOS or iOS? – Martin R Jan 05 '18 at 15:01
  • @MartinR I don't know the situation of iOS. But this question is about macOS, apparently. So I mean macOS. – zwcloud Jan 05 '18 at 15:04
  • @zwcloud: I just wanted to make sure :) – https://developer.apple.com/library/content/technotes/tn1103/_index.html still mentions the MAC address as one option to identify a computer, is that not valid anymore? – Martin R Jan 05 '18 at 15:07
  • @MartinR MAC address can be somehow edited by the user. And the doc is already 6 years old and should be outdated. – zwcloud Jan 05 '18 at 15:10

0 Answers0