Is the iPhone Simulator UDID unique for each installed instance?

Jean Regisser picture Jean Regisser · Oct 5, 2009 · Viewed 28.7k times · Source

i.e. does this call:

NSString *udid = [UIDevice currentDevice].uniqueIdentifier;

return always the same UDID when it is executed on the iPhone Simulator on any mac computer or not?

Currently the iPhone Simulator on my computer returns "2BA99337-3AE2-5234-93DA-193703B876F8".

Answer

Fazal Majid picture Fazal Majid · Aug 7, 2010

The UDID of the simulator is actually the same as the UDID of your Mac. You can easily verify this by looking at the System Profiler utility (where it is called the Hardware UUID).

On iPhones, iPads and iPod Touches, it is 40 lowercase hex digits, probably a SHA1 hash of some hardware identifier.