Open glintpursuit opened 4 years ago
Just adding a test project here: TestProject.zip
I don't yet have an enterprise account, but it does work on my local, personal account. I'll talk to people and get access to a an account.
@glintpursuit can you confirm that I have the correct style of project and it does not work.
Also, @glintpursuit can you provide a build log if it doesn't work and information if it runs on a simulator or device. Maybe Apple is doing something...
@AlexanderPBrown can you also let us know about the success of the simulator vs device and whether the project works.
To also provide better logs for us to work from, could you attach any binlogs or a detailed MSbuild log? Also, it might be very helpful to set the mtouch verbosity it detailed as well by setting -v -v -v -v
in the Additional mtouch arguments.
You can follow the steps here: https://docs.microsoft.com/en-us/xamarin/cross-platform/troubleshooting/questions/version-logs#verbose-build-output-logs
Just adding a test project here: TestProject.zip
I don't yet have an enterprise account, but it does work on my local, personal account. I'll talk to people and get access to a an account.
@glintpursuit can you confirm that I have the correct style of project and it does not work.
Unable to reproduce issue in TestProject. (After updating packages as well)
@mattleibow Below line throws the error in my application
SKBitmap bitMap = SKBitmap.Decode(new MemoryStream(mediaFileBytearray));
System.DllNotFoundException has been thrown @rpath/libSkiaSharp.framework/libSkiaSharp
Attached are the logs when error & no error. Build Logs.zip
Having a look now... nothing seems to be out, it is linking with SkiaSharp but appears not to be copied into the package for some reason.
What happens if you install all the same packages or reference all the same projects. Maybe one reference has a targets file that is doing something wrong.
@mattleibow You mean to have package added only in base project ?
I tried same, but then iOS says framework is missing for SkiaSharp.
This happening only for iOS, Android is working fine.
You need to install the iOS head/app project as well.
You need to install the iOS head/app project as well.
Got you, no success.
You need to install the iOS head/app project as well.
Got you, no success.
Do u solve this issue? got the same
You need to install the iOS head/app project as well.
Got you, no success.
Do u solve this issue? got the same
No, didn't checked from last 2 months.
I have the same issue on iOS 14.2
An error occurred: '@rpath/libSkiaSharp.framework/libSkiaSharp assembly:
I have this problem in .NET MAUI build as well.
[0:] System.TypeInitializationException: The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.
---> System.DllNotFoundException: libSkiaSharp
at SkiaSharp.SKAbstractManagedStream..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.SKManagedStream..ctor(Stream managedStream, Boolean disposeManagedStream)
at SkiaSharp.SKCodec.WrapManagedStream(Stream stream)
at SkiaSharp.SKCodec.Create(Stream stream, SKCodecResult& result)
at SkiaSharp.SKCodec.Create(Stream stream)
at SkiaSharp.SKBitmap.Decode(Stream stream)
at KeePassLib.Utility.GfxUtil.LoadImage(Byte[] pb)
at PassXYZLib.PxItem.LoadImage(Byte[] pb, String faviconUrl) in D:\src\github\PassXYZLib\PassXYZLib\PxItem.cs:line 166
at PassXYZLib.PxItem.SetIcon(Item item) in D:\src\github\PassXYZLib\PassXYZLib\PxItem.cs:line 414
at PassXYZLib.PwGroupEx.GetItems(PwGroup group) in D:\src\github\PassXYZLib\PassXYZLib\PxGroup.cs:line 78
at PassXYZ.Vault.Services.DataStore.get_Items() in D:\src\github\learning.netmaui\PassXYZ.Vault\Services\DataStore.cs:line 76
at PassXYZ.Vault.Services.DataStore.GetItemsAsync(Boolean forceRefresh) in D:\src\github\learning.netmaui\PassXYZ.Vault\Services\DataStore.cs:line 241
at PassXYZ.Vault.ViewModels.ItemsViewModel.ExecuteLoadItemsCommand() in D:\src\github\learning.netmaui\PassXYZ.Vault\ViewModels\ItemsViewModel.cs:line 79
**System.TypeInitializationException:** 'The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.'```
I have this problem in .NET MAUI build as well.
[0:] System.TypeInitializationException: The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception. ---> System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKAbstractManagedStream..cctor() --- End of inner exception stack trace --- at SkiaSharp.SKManagedStream..ctor(Stream managedStream, Boolean disposeManagedStream) at SkiaSharp.SKCodec.WrapManagedStream(Stream stream) at SkiaSharp.SKCodec.Create(Stream stream, SKCodecResult& result) at SkiaSharp.SKCodec.Create(Stream stream) at SkiaSharp.SKBitmap.Decode(Stream stream) at KeePassLib.Utility.GfxUtil.LoadImage(Byte[] pb) at PassXYZLib.PxItem.LoadImage(Byte[] pb, String faviconUrl) in D:\src\github\PassXYZLib\PassXYZLib\PxItem.cs:line 166 at PassXYZLib.PxItem.SetIcon(Item item) in D:\src\github\PassXYZLib\PassXYZLib\PxItem.cs:line 414 at PassXYZLib.PwGroupEx.GetItems(PwGroup group) in D:\src\github\PassXYZLib\PassXYZLib\PxGroup.cs:line 78 at PassXYZ.Vault.Services.DataStore.get_Items() in D:\src\github\learning.netmaui\PassXYZ.Vault\Services\DataStore.cs:line 76 at PassXYZ.Vault.Services.DataStore.GetItemsAsync(Boolean forceRefresh) in D:\src\github\learning.netmaui\PassXYZ.Vault\Services\DataStore.cs:line 241 at PassXYZ.Vault.ViewModels.ItemsViewModel.ExecuteLoadItemsCommand() in D:\src\github\learning.netmaui\PassXYZ.Vault\ViewModels\ItemsViewModel.cs:line 79 **System.TypeInitializationException:** 'The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.'```
I have the same issue, did you have a solution?
Same issue here
Hi, is there any update for fixes on this type of error?
no fixes?
I'm still on .NET 4.7.2, using Xamarin Forms, and ALSO getting this error for the XAML:
Here is my simple XAML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:keepScreenOn="true">
<SkiaSharp.Views.Android.SKCanvasView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/FullImageViewSkia"
android:layout_marginTop="0dp"
android:layout_marginLeft="0dp"
android:layout_marginBottom="0dp"
android:layout_marginRight="0dp" />
</LinearLayout>
If I simply change it to "SkiaSharp.Views.Android.SKSurfaceView", instead of SKCanvasView, then it works.
I'm on Android, so for me, on Android, it seems that SKSurfaceView is probably more appropriate for my situation - as we're implementing our entire app as a full-screen image (like a game, but rendered to a SKBitmap, and blitted to the screen).
Steps to Reproduce
Expected Behavior
Actual Behavior
Environment