You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Dotmim.Sync as a singleton service in a .NET MAUI app to handle data synchronization. The issue I’m experiencing is that synchronization works perfectly in Debug mode but fails in Release mode.
In Release mode, no synchronized objects are visible in the app, though the app itself doesn't crash. The following error message appears in the logs during synchronization attempts:
The error seems related to JIT compilation, which is restricted in AOT-only environments. I've tried enabling the Mono Interpreter for Release builds as a workaround:
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'"> <UseInterpreter>true</UseInterpreter> </PropertyGroup>
However, with this setting, the app fails to start entirely in Release mode.
Description:
I'm using Dotmim.Sync as a singleton service in a .NET MAUI app to handle data synchronization. The issue I’m experiencing is that synchronization works perfectly in Debug mode but fails in Release mode.
In Release mode, no synchronized objects are visible in the app, though the app itself doesn't crash. The following error message appears in the logs during synchronization attempts:
The error seems related to JIT compilation, which is restricted in AOT-only environments. I've tried enabling the Mono Interpreter for Release builds as a workaround:
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
<UseInterpreter>true</UseInterpreter>
</PropertyGroup>
However, with this setting, the app fails to start entirely in Release mode.
Steps to Reproduce:
Configure Dotmim.Sync as a singleton in a .NET MAUI app.
Run the synchronization in Debug mode - it works as expected.
Deploy the app in Release mode on an iOS device.
Observe the error in the log file.
Expected Behavior:
Synchronization should work in both Debug and Release modes without needing JIT compilation.
Actual Behavior:
In Debug mode, synchronization works as expected.
In Release mode, the synchronization fails due to the AOT restriction, and enabling the Mono Interpreter prevents the app from starting.
Workarounds Attempted:
Enabled Mono Interpreter for Release builds (true), but the app fails to start.
Additional Context: Any advice on using Dotmim.Sync in AOT environments like iOS in Release mode, or if alternative configuration settings could resolve the AOT compilation issues, would be appreciated.
The text was updated successfully, but these errors were encountered:
Description:
I'm using Dotmim.Sync as a singleton service in a .NET MAUI app to handle data synchronization. The issue I’m experiencing is that synchronization works perfectly in Debug mode but fails in Release mode.
In Release mode, no synchronized objects are visible in the app, though the app itself doesn't crash. The following error message appears in the logs during synchronization attempts:
The error seems related to JIT compilation, which is restricted in AOT-only environments. I've tried enabling the Mono Interpreter for Release builds as a workaround:
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'"> <UseInterpreter>true</UseInterpreter> </PropertyGroup>
However, with this setting, the app fails to start entirely in Release mode.
Description:
I'm using Dotmim.Sync as a singleton service in a .NET MAUI app to handle data synchronization. The issue I’m experiencing is that synchronization works perfectly in Debug mode but fails in Release mode.
In Release mode, no synchronized objects are visible in the app, though the app itself doesn't crash. The following error message appears in the logs during synchronization attempts:
The error seems related to JIT compilation, which is restricted in AOT-only environments. I've tried enabling the Mono Interpreter for Release builds as a workaround:
However, with this setting, the app fails to start entirely in Release mode.
Steps to Reproduce:
Configure Dotmim.Sync as a singleton in a .NET MAUI app.
Run the synchronization in Debug mode - it works as expected.
Deploy the app in Release mode on an iOS device.
Observe the error in the log file.
Expected Behavior:
Synchronization should work in both Debug and Release modes without needing JIT compilation.
Actual Behavior:
In Debug mode, synchronization works as expected.
In Release mode, the synchronization fails due to the AOT restriction, and enabling the Mono Interpreter prevents the app from starting.
Version Information:
Dotmim.Sync.Core: 1.2.0
Dotmim.Sync.Sqlite: 1.2.0
Dotmim.Sync.Web.Client: 1.2.0
.NET MAUI: net8.0
Platform: iOS (Release mode)
Workarounds Attempted:
Enabled Mono Interpreter for Release builds (true), but the app fails to start.
Additional Context: Any advice on using Dotmim.Sync in AOT environments like iOS in Release mode, or if alternative configuration settings could resolve the AOT compilation issues, would be appreciated.
The text was updated successfully, but these errors were encountered: