5

How do we get the serial number of the device through objective C? I want to retrieve the iPod/iPhone/iPad serial number from within my application.

Abhinav
  • 37,684
  • 43
  • 191
  • 309
  • 1
    @Grady: who says he didn't? I just did a few searches and couldn't find anything useful. – Rudy Velthuis Aug 19 '11 at 23:07
  • Just be aware that there's probably no Aoo Store acceptable reason for doing so. UDID is being deprecated, and anything else you can find that has potentially private information is off limits too. – Flyingdiver Aug 20 '11 at 01:56
  • https://apsalar.com/blog/2013/03/apple-rejecting-apps-with-udid/ – Fahim Parkar Sep 04 '14 at 10:56
  • What would be the use case to get this, there is probably alternative solution, depending on your problem... – tomsoft Sep 04 '14 at 11:31

1 Answers1

6

If you are creating an application that will not be submitted to the App Store you can check out Erica Sadun's UIDevice Extensions which uses IOKit.framework.

[[UIDevice currentDevice] serialnumber]
Joe
  • 56,979
  • 9
  • 128
  • 135