Getting immediate crash during saving data into sqlite.
using following release parameters
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0-ios|AnyCPU'">
<MtouchProfiling>True</MtouchProfiling>
<MtouchExtraArgs>--interpreter</MtouchExtraArgs>
<UseInterpreter>True</UseInterpreter>
</PropertyGroup>
used packages
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.16" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.16" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.16"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference>
at this stage using prepopulated database which copied following way
var assembly = IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly;
var names = assembly.GetManifestResourceNames();
using (Stream stream = assembly.GetManifestResourceStream("TestProject.Test.db")) {
using (MemoryStream memoryStream = new MemoryStream()) {
stream.CopyTo(memoryStream);
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Test.db");
File.WriteAllBytes(path, memoryStream.ToArray());
}
}
Data from db retrieved successfully.
Save works on Windows and Android.