# Pairing Xcode and AppleTV

**URL:** <https://ifnotnil.com/t/pairing-xcode-and-appletv/3280>\
**Category:** Other\
**Created:** [19 May 2023 18:41 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280 "2023-05-19T18:41:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [19 May 2023 18:41 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/1 "2023-05-19T18:41:03Z")

</div>

This is supposed to be a “simple” process.

I can get Xcode to see the ATV… .and I get the [Pair] button. Click on it, and it asks for the code (which appears on the ATV screen). I enter that code, and click [Connect], a few seconds later the [Pair] button appears again.

Every few hundred times I try this, it seems to work, and I can send Xcode apps to the ATV… but then an hour or so later, I will send a project to the ATV, and BOOM! it unpairs and vanishes, then I’m back to spending a few hours trying to make it work yet again

Anyone know a magic spell here?

---

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [19 May 2023 21:32 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/2 "2023-05-19T21:32:13Z")

</div>

Not sure if this is the solution or not… but it seems that the ATV was on a 2.4g Wifi siginal, and Xcode was on a 5g (same Lan, same router)… I switch ATV to the 5g and things work (for now)

The remaining problem, is when the ATV goes to sleep (20 min inactive), it unpairs itself

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [19 May 2023 21:56 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/3 "2023-05-19T21:56:34Z")

</div>

dont they have a setting for how long a delay until they sleep ?  
and maybe a never sleep one?

---

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [19 May 2023 22:10 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/4 "2023-05-19T22:10:16Z")

</div>

Yes, and I just set it to “Never” for the time being…

But I don’t recall it “forgetting” before

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [19 May 2023 22:38 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/5 "2023-05-19T22:38:48Z")

</div>

Your amnesia ?  
Or the ATVs ?

---

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [19 May 2023 22:52 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/6 "2023-05-19T22:52:22Z")

</div>

both

---

<div class="post-metadata">

**Author:** ![supcumps](https://ifnotnil.com/user_avatar/ifnotnil.com/supcumps/32/362_2.png) [@supcumps](https://ifnotnil.com/u/supcumps)\
**Post date:** [25 May 2023 21:36 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/7 "2023-05-25T21:36:11Z")

</div>

Hi Dave,  
Many devices only pair successfully at 2.4  
Why not try setting both to that?  
Good luck  
Phil

---

<div class="post-metadata">

**Author:** ![DaveS](https://ifnotnil.com/user_avatar/ifnotnil.com/daves/32/79_2.png) [@DaveS](https://ifnotnil.com/u/DaveS)\
**Post date:** [25 May 2023 21:49 UTC](https://ifnotnil.com/t/pairing-xcode-and-appletv/3280/8 "2023-05-25T21:49:21Z")

</div>

actually the ATV was 2.4 and the mac was 5 both are at 5 now, and the issue has vanished…

It does need to re-pair each time I power it up, but that is just a minor annoyance
