I was running my self-developed software on my iPhone 7 which runs iOS 12.2 when an alert had popped up:
This iPhone 7 (Model 1660, 1778, 1779, 1780) is r
Depending on your use case, the answer could be different.
If you want DEBUGGING (breakpoint, logging on console...) on your real device iOS 12.2, then you must have Xcode 10.2 (it's beta at this moment)
If you want to RUN your app on your device, you can use Xcode 10.1 (thought even Xcode 9 can do that). You can do that using beta distribution service like TestFlight, Fabric... Or by using Xcode, you can archiving your app, then drag & drop the .app file in your device.