Apple launches Apple Store app in India

The Apple Store app provides customers with the most personalized way to shop for Apple’s innovative lineup of products and services. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

XCode can't connect to Vision Pro - connection invalidated

I'm trying to run my app on Vision Pro. It worked flawlessly one day, but XCode can't even connect to the device the next day.


The error message usually says "internal logic error" or "connection invalidated by peer" or "connection tunnel could not be created".


I'm able to connect to my Mac as a remote device, screen mirroring etc works. But it's only Xcode that's unable to keep the connection alive.\


Developer mode is on. I have been able to test just yesterday. Not sure what changed over night?


Apple Vision Pro

Posted on Feb 11, 2024 9:43 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 15, 2024 1:42 PM

I just had a mix of different issues here too after successfully using it for a couple of days, then not being able to connect anymore. For me my device seemed to have forgot the remote device and I had to add it as a new one again through Settings → General → Remove Devices.

Similar questions

3 replies
Sort By: 
Question marked as Top-ranking reply

Feb 15, 2024 1:42 PM in response to kartikrao

I just had a mix of different issues here too after successfully using it for a couple of days, then not being able to connect anymore. For me my device seemed to have forgot the remote device and I had to add it as a new one again through Settings → General → Remove Devices.

Reply

Feb 18, 2024 9:36 PM in response to kartikrao

The issue seems to be intermittent. I've noticed a pattern where quitting any visionOS simulators you have running could help the odds of Xcode making and retaining a connection to the device. Sometimes it just starts working again if I leave the device idle for a couple of minutes 🤷‍♂️ Weird, I know.

Reply

XCode can't connect to Vision Pro - connection invalidated

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.