Thanks @shaunmulligan let me know how it goes.
--live flag sounds promising. I’ll have to give it a try.
Is there some additional documentation for how to use
--live besides what’s available on the latest CLI docs?
For example: it sounds like it’ll keep the sources files in sync, but I’m not sure how it would know to trigger a
swift build to perform an incremental compilation and to restart the app binary.
So far I’ve been using various other techniques to improve the local device debug loop, mostly by semi-abusing the docker layer cache to cache swift package dependencies / modules.
I’ve also experimented with cross compiling the actual ARM Swift app on macOS and then pushing that to the device via lldb remote debugging (it’s fast and you get breakpoints!). It’s conceptually similar to how iOS apps are built / debugged from macOS and pushed to iOS (ARM) devices. Other folks in the Swift on ARM community are making progress on this front and I plan to explore it more when I have some time.
The local build / test / debug loop is definitely an area of interest for me, so looking forward trying this out.