-
Notifications
You must be signed in to change notification settings - Fork 17
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
[BUG] Unable to build, deploy or debug non MAUI iOS apps #1684
Comments
@BretJohnson for the build issue when Hot Reload is enabled. @CartBlanche could you remove the launch.json, change the MAUI Debug Verbosity from the VS Code settings to Diagnostic, and then build again with Hot Reload disabled and share the binlog file that's going to be generated in your solution folder? |
I'll give that a try later today. |
@emaf, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer. |
@emaf & @BretJohnson So it seems the key was setting Hot Reload to Disabled in the actual main extension settings and then build, deploy, debug all worked 🎆 . I then re-enabled it and set the csproj tag as false: As the 1st scenario allows me to progress, I won't give you that binlog. But here is the binlog for the project level HotReloadEnabled = false scenario - https://gist.github.com/CartBlanche/929fc43ded18d57347d990e93b97ab3f I had to gist it, as github won't let me upload it here. As I work with both MAUI and non MAUI projects, it would be good if both options worked. |
@BretJohnson this seems to be a Hot Reload related issue, could you take a look? |
Sounds like a dup of #1237. |
@rolfbjarne Hope you've been well. Is there an ETA of when this or #1237 will be fixed? |
I agree that this is a dupe of #1237. I get a different AOT error but this is from the bootstrapping code for provisioning Hot Reload through the MAUI Dev Kit. This also applies for C# Hot Reload, which is supported for .NET iOS apps (including ones that don't use the MAUI UI toolkit) so it being invoked is "correct" and fine. But if the interpreter is disabled (which it will be true for default .NET iOS apps) or other trimmer related options are enabled that would cause hot reload to not work, the code shouldn't be invoked at all and should be skipped. https://github.com/drasticactions/MauiRepoRedux/tree/interpreter-test In testing this with a MAUI UI application (As in The correct behavior would be, IMO,
|
Describe the Issue
VSCode seems to be an unable to build, deploy or debug non MAUI iOS apps. To clarify it is standard iOS, .NET app.
With the default MAUI launch it insists on firing off the AOT build, which seems to be part of HotReload feature and throws an error like this:
If I add
<EnableHotReload>false</EnableHotReload>
to the csproj file it builds and deploys to the iOS simulatator, but the resultant app, fails to startup. It crashes on start-up. So something is corrupt with that build.In comparision if I load exactly the same csproj and associated sln in Visual Studio of Mac, it builds, deploys and allows me to debug, without issues.
If I then create my own launch.json
This then builds, deploys and runs on the simulator, but I'm unable to debug anything due to a debug connection issue of:
I also tested the above by removing ALL other extensions and keeping just the MAUI one installed (with it's dependencies) and I still get the AOT/HotReload error. So it's definitely MAUI extension related.
If MS wants everyone to move away from Visual Studio for Mac, then this stuff needs to work as easily as it does in VS for Mac.
It has to Just Work(TM)!
Steps To Reproduce
Create a non MAUI iOS app.
Try to build, deploy and debug it.
Expected Behavior
It should build, deploy and debug, without issue, like it does in Visual Studio for Mac.
Environment Information
VS Code version: Code 1.95.3 (Universal) (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 24.1.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (26)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: