Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] HotReload doesn't work #220

Open
nor0x opened this issue Dec 16, 2021 · 5 comments
Open

[iOS] HotReload doesn't work #220

nor0x opened this issue Dec 16, 2021 · 5 comments

Comments

@nor0x
Copy link

nor0x commented Dec 16, 2021

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

Screen.Recording.2021-12-16.at.16.53.45.mov
@mrwcjoughin
Copy link

mrwcjoughin commented Dec 18, 2021 via email

@SarthakGz
Copy link

Comet has it's own HotReload that you have to initialise like below

#if DEBUG
Comet.Reload.Init();
#endif

@saint4eva
Copy link

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.

@saint4eva
Copy link

saint4eva commented Dec 26, 2021

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.

@philippjbauer
Copy link

philippjbauer commented Jan 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants