Xcode 13.0 can't pair to Apple TV 4K (tvOS 15.0)

On Xcode 13.0, I can no longer pair with an Apple TV 4K (tvOS 15.0). Until now it has always worked but since the new update to tvOS 15.0 and Xcode 13.0 I can no longer connect.

I have gone through the following steps to connect:

  1. Open remote app and devices settings on Apple TV 4K (tvOS 15.0).
  2. Open Devices and Simulators in Xcode 13.0.
  3. Select Apple TV in the list and press "Pair".
  4. Code appears on the Apple TV and I can enter it in an Xcode window.
  5. After the code input, there is a short loading sign that a connection is being established. After a few seconds, the whole thing stops without an error message and the "Pair" button is visible again.

Does anyone have the same problem? I would like to optimize my apps for tvOS 15 and test them on a physical device.

Answered by janapple in 698735022

After changing the following setting on the Apple TV I was able to connect via Xcode:

  1. Open "AirPlay and HomeKit" under the settings on the Apple TV.
  2. Make sure "Allow Access" is set to "Anyone in the Same Network". Was on "Only People Sharing This Home" for me previously.

Since I made this change, everything works fine for me again.

Accepted Answer

After changing the following setting on the Apple TV I was able to connect via Xcode:

  1. Open "AirPlay and HomeKit" under the settings on the Apple TV.
  2. Make sure "Allow Access" is set to "Anyone in the Same Network". Was on "Only People Sharing This Home" for me previously.

Since I made this change, everything works fine for me again.

Similar here. Pairing the Apple TV succeeded, but since then the Devices and Simulators window says the device is locked...

For those that are still having this problem, I figured that if you remove duplicated certificates at the certificate manager it works... Tried soo many different things and this was the only fix that actually worked for me.

If it helps anyone ... one factor is, you really need a good router. Consider just rolling to bestbuy and getting a new top of line router, it's a cost of business :/

Certainly, there can be cert problems etc. But it is really much smoother with the newest possible router.

It may even sound silly but be sure to have proper modern cat8 ethernet cables for your jumpers (eg, from fiber modem or whatever to router to switch and to your appleTVs)

I've really found that pairing only works solidly if you have a really new router and everything in ideal condition. Routers are constantly slightly changing in subtleties of the specification and versions.

Just "Restart your router"

The only solution that always worked for me is to "restart the Router".

This is the fastest way to fix this issue. Apple team should look into this issue and fix it.

So I recently purchased an Apple TV and was having this same issue. I got this to work by manually downloading the latest "support file" for the version of tvOS installed, which was 15.4 (although the latest version released at the time of writing was 15.6). It connected successfully on the first attempt. I'd suggest giving this a try. Download and extract if necessary, copy extracted folder to: /Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport/. hopefully this helps

ok so been having this issue for so long and not one of the above solutions ever worked for me. then I remembered I did fix it once and now I finally remember the fix. The issue is with DNS - make sure that your apple tv and computer are on the same dns (i.e. 8.8.8.8 or better 192.168.1.1 (or whatever your router IP is), make sure its not pointing to some proxy or pihole kind of dns. After changing this, rebooting both, works like a charm.

If you have an ethernet cable plugged into your Apple TV, unplug it so the Apple TV is only communicating using Wi-Fi before attempting to pair it with Xcode.

Has anybody here seen this degrade again with Xcode 15? Xcode 14 was a pretty good year with this issue, felt like minimum issues. But with 15 it feels like it's been creeping back. If I'm in a loop of doing lots of dev and testing, sometimes I can only get a few Runs in before the Connecting between the two devices is lost. Incredibly frustrating.

Xcode 13.0 can't pair to Apple TV 4K (tvOS 15.0)
 
 
Q