In order to thoroughly test an App, you need to test it on an actual iOS device such as your iPhone or iPad. The traditional way is to physically connect the device to the Mac.

If you goal is to test your app on your local device, you can use TestFlight App with our Managed or Pay-As-You-Go server plans to do beta testing for your application.

If you absolutely need to connect your local device to the Mac, then you will need a Dedicated Server Plan and the third party application USB Gate or to be able connect your device to your local machine and have it connected to the server. 

Please note that when you use USB Gate you will need to make your user a part of the staff group

Source: < >