01 GET YOUR APPLE TV UDID
Session Code
-----
A
Keep this code open Your Apple TV will return the UDID to this session.
B
Need a new session?
1
Open Settings On your Apple TV, go to Settings → General → Privacy & Security
2
Share Analytics Scroll down to highlight "Share Apple TV Analytics"
3
Add Profile Click the Play/Pause button on your remote and choose "Add Profile"
4
Enter URL Enter the URL shown below
5
Install Profile Click "Done" and follow the prompts to install the temporary profile
6
Check back on this page Your UDID will appear at the top of this page automatically
Enter this URL on your Apple TV: udid.tv/-----

Alternative: Xcode Method

Connect your Apple TV to your Mac via USB-C, open Xcode, go to Window → Devices and Simulators (⇧⌘2), and find the Identifier field.