HotReloading: iOS device injection not working when running as a Mac app
I’m trying to use injection when running an iOS app as a Mac app, but I don’t see the changes on screen. Is running an iOS app as Mac supported? I assumed it is because I saw that code in HotReloading that use isiOSAppOnMac.
Attached is a simple app that shows the problem. Whether I’m changing the textView’s text in ViewController or ViewController’s background color I don’t see the change on screen.
ExampleApp.zip
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
I’ve pushed a commit implementing this change. No more device injection for iOS on Mac when using HotReloading.
I may have closed this prematurely as I have a terrible flu today. If you can come up with a PR that avoids using the device injection code in the specific configuration of iOS on Mac using HotReloading I’ll take a look at it. Thanks!
I’ll take a look, you’re covering all the bases. It’s nice when someone checks them from time to time. This has worked but I remember there were complications as you cannot turn off “library validation” (there are notes in the InjectionIII project README) and things in the OS sometimes change with time. I’ll take a look at your example app tomorrow, it’s possible I may switch this configuration to use “device” injection since it exists now even though it is on the mac though that would create other problems. What do you plan to use this for? What macOS version are you on?