Hello,
I tried to do the same thing a while ago and succeed but can't find the code right now.
I did find a SO answer which look like what I used : https://stackoverflow.com/questions/59350500/how-to-get-iphone-as-avcapturedevice-on-macos
Hope that help :)