Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the iPhone Simulator UDID unique for each installed instance?

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".

like image 497
Jean Regisser Avatar asked Oct 05 '09 13:10

Jean Regisser


People also ask

Does iOS simulator have udid?

Finding UDID Switch to the Simulators tab and select the simulator that you need to find the UDID for. The UDID is displayed as "Identifier". On your Xcode host, open the Terminal and input xcrun simctl list | grep TV to find the UDID of the simulator(s) that you would like to add.

How do I find my iOS simulator UDID?

From Xcode: Window -> Devices and Simulators -> Simulators. The Identifier value is the UDID.

Where does the iPhone simulator store its data?

type: ~/Library/Application Support/iPhone Simulator. The Directories are the iOS version of the different Simulators. The Sub Directories are the Apps install on the simulator.

How do I change the location of my iPhone simulator?

in iOS Simulator menu, go to Features -> Location -> Custom Location. There you can set the latitude and longitude and test the app accordingly. This works with mapkit and also with CLLocationManager. Save this answer.


2 Answers

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.

like image 156
Fazal Majid Avatar answered Oct 06 '22 01:10

Fazal Majid


Xcode has this data for you:

  1. Xcode 5: Open Organizer
  2. Click My Mac
  3. Look at the Identifier for the machine there.

    -OR-

  4. Xcode 6: Open Devices (CMD+SHIFT+2 -OR- Window -> Devices)

  5. Click the simulator you're running
  6. Look at the Identifier for the simulator there
like image 24
cynistersix Avatar answered Oct 06 '22 01:10

cynistersix