accessing on device files while testing Vision Pro

I am testing an app which reads text files from the documents directory on the Vision Pro. This was working for a while.

Suddenly, after some edits, renaming a file and adding new test files. I only see the old files.

How can I force Xcode to use the live directory at all times for testing.

Answered by DTS Engineer in 897346022

If you’re targeting appleOS 27 beta, you should use Xcode 27 beta. While Xcode 26 might work, it’s not a supported configuration and that can result in weird problems.

In fact, I’ve just been talking to another developer in a similar sitaution in this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Ok, upon rebooting I find that there are two copies of the folder on device with exactly the same name. The previously invisible one was being accessed by the app. After deleting the copy, the app is accessing the files correctly.

I don't know how two copies of the folder came to be or why one was invisible until reboot.

Which Xcode are you using? Because the story here has changed significantly in Xcode 27 beta.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I'm on Xcode 26.6, Tahoe 26.5.2 and a mini M4. However, the VP is 27 beta 2.

It's working now. I'll keep rebooting if issues appear.

If you’re targeting appleOS 27 beta, you should use Xcode 27 beta. While Xcode 26 might work, it’s not a supported configuration and that can result in weird problems.

In fact, I’ve just been talking to another developer in a similar sitaution in this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

accessing on device files while testing Vision Pro
 
 
Q