[iOS] HotReload doesn't work
Hello π
i have just created a blank new comet app with dotnet new comet and opened it in vscode with the Comet for .NET Mobile extension version v0.3.15 installed. I run it on my iOS simulator and try to hotreload changes but there is nothing updated on the simulator.
Am i doing something wrong or is this a known issue? Sorry if this is the wrong repo - i wasn't sure if i should put it here or into https://github.com/Clancey/vscode-comet ?
Here is a screenrecording
https://user-images.githubusercontent.com/3210391/146415411-3030cce2-8b7f-4707-8192-9bc844aae610.mov
Isnβt hotreload only for xaml changes ?
On Thu, 16 Dec 2021 at 19:00, nor0x @.***> wrote:
Hello π i have just created a blank new comet app with dotnet new comet and opened it in vscode with the Comet for .NET Mobile extension version v0.3.15 installed. I run it on my iOS simulator and try to hotreload changes but there is nothing updated on the simulator.
Am i doing something wrong or is this a known issue?
Here is a screenrecording
https://user-images.githubusercontent.com/3210391/146415411-3030cce2-8b7f-4707-8192-9bc844aae610.mov
β Reply to this email directly, view it on GitHub https://github.com/dotnet/Comet/issues/220, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOGERTKSGGQ3S53DGJG2U3URILKJANCNFSM5KGZ7MDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Thanks,
Matthew Joughin Founder / CTO
+27 81 529 7169 http://www.adaptableapps.net
Comet has it's own HotReload that you have to initialise like below
#if DEBUG Comet.Reload.Init(); #endif
Isnβt hotreload only for xaml changes ? On Thu, 16 Dec 2021 at 19:00, nor0x @.> wrote: Hello π i have just created a blank new comet app with dotnet new comet and opened it in vscode with the Comet for .NET Mobile extension version v0.3.15 installed. I run it on my iOS simulator and try to hotreload changes but there is nothing updated on the simulator. Am i doing something wrong or is this a known issue? Here is a screenrecording https://user-images.githubusercontent.com/3210391/146415411-3030cce2-8b7f-4707-8192-9bc844aae610.mov β Reply to this email directly, view it on GitHub <#220>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOGERTKSGGQ3S53DGJG2U3URILKJANCNFSM5KGZ7MDA . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Thanks, Matthew Joughin Founder / CTO +27 81 529 7169 http://www.adaptableapps.net
.NET Hotreloadm(C# and VB.NET) and Xaml Hotreload.
Isnβt hotreload only for xaml changes ? On Thu, 16 Dec 2021 at 19:00, nor0x @.> wrote: Hello π i have just created a blank new comet app with dotnet new comet and opened it in vscode with the Comet for .NET Mobile extension version v0.3.15 installed. I run it on my iOS simulator and try to hotreload changes but there is nothing updated on the simulator. Am i doing something wrong or is this a known issue? Here is a screenrecording https://user-images.githubusercontent.com/3210391/146415411-3030cce2-8b7f-4707-8192-9bc844aae610.mov β Reply to this email directly, view it on GitHub <#220>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOGERTKSGGQ3S53DGJG2U3URILKJANCNFSM5KGZ7MDA . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Thanks, Matthew Joughin Founder / CTO +27 81 529 7169 http://www.adaptableapps.net
.NET Hotreload and Xaml Hotreload.
On macOS 12.1 (Apple M1), latest .NET 6.0.200-preview, latest MAUI preview 12, latest Comet template.
I can reproduce the error. I start the debugger without the iOS Simulator running, the app starts up with the following debug log:
Debugger is ready and listening...
Using `-sdkroot /Applications/Xcode.app/Contents/Developer`
Found .app: /../Comet.Test/Comet.Test/bin/Debug/net6.0-ios/iossimulator-x64/Comet.Test.app
Looking for Microsoft.iOS.Sdk tools in: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk
Found mlaunch: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.300-preview.13.1/tools/bin/mlaunch
2022-01-23 14:08:43.295738-0600 Comet.Test[35133:276991] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=35133
2022-01-23 14:08:43.298996-0600 Comet.Test[35133:276991] SecTaskCopyDebugDescription: Comet.Test[35133]/0#-1 LF=0
2022-01-23 14:08:43.348959-0600 Comet.Test[35133:276991] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=35133
2022-01-23 14:08:43.349560-0600 Comet.Test[35133:276991] SecTaskCopyDebugDescription: Comet.Test[35133]/0#-1 LF=0
2022-01-23 14:08:43.805365-0600 Comet.Test[35133:277175] HotReload Initialize: True
2022-01-23 14:08:43.857396-0600 Comet.Test[35133:277181] Recieved Data
2022-01-23 14:08:44.365046-0600 Comet.Test[35133:276991] [TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
Nothing happens when I change the code and save.
When I reload the debugger, the HotReload Initialize is False:
Stopping iOS process...
iOS Process was stopped.
mlaunch is running...
Debugger is ready and listening...
Using `-sdkroot /Applications/Xcode.app/Contents/Developer`
Found .app: /../Comet.Test/Comet.Test/bin/Debug/net6.0-ios/iossimulator-x64/Comet.Test.app
Looking for Microsoft.iOS.Sdk tools in: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk
Found mlaunch: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.300-preview.13.1/tools/bin/mlaunch
2022-01-23 14:13:24.189887-0600 Comet.Test[35218:280522] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=35218
2022-01-23 14:13:24.193056-0600 Comet.Test[35218:280522] SecTaskCopyDebugDescription: Comet.Test[35218]/0#-1 LF=0
2022-01-23 14:13:24.246397-0600 Comet.Test[35218:280522] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=35218
2022-01-23 14:13:24.247111-0600 Comet.Test[35218:280522] SecTaskCopyDebugDescription: Comet.Test[35218]/0#-1 LF=0
2022-01-23 14:13:24.657473-0600 Comet.Test[35218:280686] HotReload Initialize: False
2022-01-23 14:13:25.224646-0600 Comet.Test[35218:280522] [TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.