Building and testing on Vision Pro device

I am able to get the unity editor to work for the simulator, but I do not know how to get the build to work for the vision pro device. I don’t understand how test flight links with Unity, I do not have a code to run it and I need the headset to be updated in real time