supabase-community / supabase-csharp

A C# Client library for Supabase
https://github.com/supabase-community/supabase-csharp/wiki
MIT License
496 stars 50 forks source link

[MAUI iOS] Failed to AOT compile Microsoft.VisualStudio.TestPlatform.Common.dll #163

Closed nor0x closed 4 months ago

nor0x commented 4 months ago

Bug report

I'm using Supabase in a .NET MAUI app. Publishing a release build for iOS currently breaks with the following error:

Tool /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross execution finished (exit code = 1).        
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile Microsoft.VisualStudio.TestPlatform.Common.dll, the AOT compiler exited with code 1. [/Users/dev/mauisupabase/mauisupabase.csproj::TargetFramework=net8.0-ios]

Tool /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross execution finished (exit code = 1).          
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(1215,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 1. [/Users/dev/mauisupabase/mauisupabase.csproj::TargetFramework=net8.0-ios]

I'm not quite sure where Microsoft.VisualStudio.TestPlatform.Common.dll is referenced, maybe from https://github.com/supabase-community/storage-csharp?

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. dotnet new maui
  2. dotnet add package Supabase --version 1.0.4
  3. dotnet publish PROJECTNAME.csproj -c Release -f net8.0-ios -r ios-arm64 -p:ArchiveOnBuild=true
  4. See error

Expected behavior

a published iOS app :-)

Screenshots

If applicable, add screenshots to help explain your problem.

System information

acupofjose commented 4 months ago

I think you may be right on that one! Those dependencies aren't really needed for Supabase.Storage I've removed them in the latest release - try 1.0.5 and get back to me?

nor0x commented 4 months ago

thank you @acupofjose i can confirm that 1.0.5 works fine