Debugging iPhone game

Hello,
I’m new to the Apple environment, with android I never had problems to attach the debugger to my device. I bought recently an iPhone XR as personal and development tool, but looks like I cannot attach the debugger to my iphone running the game.

I’m using a MacBook Air 2017 and tried with Rider and Visual studio

Any help is highly appreciated

Nobody?

You debug on iOS in XCode.