ammariqais / SkiaForUnity

Skia For Unity with lottie animations, harfbuzz, svg supports
https://ammariqais.github.io/SkiaForUnity/html/
MIT License
92 stars 5 forks source link

DllNotFoundException on iOS build #14

Closed e-fo closed 10 months ago

e-fo commented 10 months ago

When I build my game for iOS, I get this error on my device.

This is link of my Unity project: https://github.com/e-fo/UnityRuntimeAtlasMultithreaded

Can anyone helps me to find and solve my problem?

DllNotFoundException: Unable to load DLL 'libSkiaSharp'. Tried the load the following dynamic libraries: Unable to load dynamic library '/libSkiaSharp' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(/libSkiaSharp, 0x0005): tried: '/libSkiaSharp' (errno=2), '/private/preboot/Cryptexes/OS/libSkiaSharp' (errno=2), '/libSkiaSharp' (errno=2)\
  at SkiaSharp.SkiaApi.sk_version_get_milestone () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SkiaSharpVersion.get_Native () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible (System.Boolean throwIfIncompatible) [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKObject..cctor () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKObject.set_Handle (System.IntPtr value) [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKNativeObject.Finalize () [0x00000] in <00000000000000000000000000000000>:0 \
Rethrow as TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception.\
  at SkiaSharp.SKObject.set_Handle (System.IntPtr value) [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKNativeObject.Finalize () [0x00000] in <00000000000000000000000000000000>:0 \
UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)\
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)\
\
DllNotFoundException: Unable to load DLL 'libSkiaSharp'. Tried the load the following dynamic libraries: Unable to load dynamic library '/libSkiaSharp' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(/libSkiaSharp, 0x0005): tried: '/libSkiaSharp' (errno=2), '/private/preboot/Cryptexes/OS/libSkiaSharp' (errno=2), '/libSkiaSharp' (errno=2)\
  at SkiaSharp.SkiaApi.sk_version_get_milestone () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SkiaSharpVersion.get_Native () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible (System.Boolean throwIfIncompatible) [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKObject..cctor () [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKObject.set_Handle (System.IntPtr value) [0x00000] in <00000000000000000000000000000000>:0 \
  at SkiaSharp.SKNativeObject.Finalize () [0x00000] in <00000000000000000000000000000000>:0 \
UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)\
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)\
e-fo commented 10 months ago

I found the solution in your documentation.