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.

  • The pairing is just really flakey.

    At the moment I have to keep repairing every time I wake the Apple TV up! It's absurd. This on two ATVs. For no reason, a third ATV does not have this issue. All are latest model ATV 4Ks. Latest Xcode. New MacBook Pro 16.

    Devices & Sims says the device is locked, what does that even mean for an ATV anyway? Well, the ATV is not locked as I am navigating using the remote. It's obviously visible to the MacBook and vice versa because when I go to Remote & Apps, the Pair button appears in Xcode devices + Sims.

    As soon as I turn the ATV off, or it sleeps, or some period of time passes, I have to go through the rigmarole again.

    Painful to dev for ATV with things like this.

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

Add a Comment

Accepted Reply

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.

  • After 3 weeks, the error occurred again so this does not seem to be the solution. I reseted the Apple TV but after a few days I had to reset it again because it stayed in lock status no matter what I did.

  • In the meantime I was able to get the Apple TVs out of locked mode by right clicking on the locked Apple TV under "Devices and Simulators" and selecting "Connect via IP Address...".

  • After a while this stopped working for me too. Both my ATV and Mac were at first connected over 2.4GHz and paired, then I moved both of them to 5Ghz (on the same router) and some time after the issues started. Connecting both my Mac and ATV to 2.4Ghz resolved the issue, and no pairing was necessary as it seemed to remember it.

Replies

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.

  • Cables and the router have nothing to do with this, it worked great up till IOS 15. I have enterprise grade gear with all the right connectivity and it's still trial and error as to whether it works or not. I would not recommend anyone go this direction when trying to solve this as it's likely money down the drain.

Add a Comment

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.