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".
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.
From Xcode: Window -> Devices and Simulators -> Simulators. The Identifier value is the UDID.
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.
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.
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.
Xcode has this data for you:
Look at the Identifier for the machine there.
-OR-
Xcode 6: Open Devices (CMD+SHIFT+2 -OR- Window -> Devices)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With