I operated a whole bespoke enterprise build farm for iOS that did hundreds of headless xcode builds per day, plus I wired up automated app re-signing with a signing identity repository. It's a pain because Apple isn't super helpful if you're not on the straight and narrow path, but it's not rocket surgery. Just hooking up some actions to automate a build and install when 'phone plugged in' event is detected isn't that hard.