FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Problem with image Webp in IOS

Open FGGamboa opened this issue 5 years ago • 2 comments

images webp called by url not working in ios, but android work perfect.

I working with:

PackageReference Include="Xamarin.FFImageLoading" Version="2.4.11.982" PackageReference Include="Xamarin.FFImageLoading.Forms" Version="2.4.11.982" PackageReference Include="Xamarin.Forms" Version="3.6.0.709228"

I see this error: Image loading failed: https://upload.wikimedia.org/wikipedia/commons/b/b2/Vulphere_WebP_OTAGROOVE_demonstration_2.webp; ObjCRuntime.RuntimeException: Can't register the class WebP.Touch.WebPDecoder when the dynamic registrar has been linked away. at ObjCRuntime.Class.GetClassHandle (System.Type type, System.Boolean throw_if_failure, System.Boolean& is_custom_type) [0x0010a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/ObjCRuntime/Class.cs:176 at ObjCRuntime.Class.GetClassHandle (System.Type type) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/ObjCRuntime/Class.cs:181 at ObjCRuntime.Class.GetHandle (System.Type type) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/ObjCRuntime/Class.cs:134 at Foundation.NSObject.AllocIfNeeded () [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/Foundation/NSObject2.cs:511

I deleted the folders: bin and obj, also clean the solution and the error persist Thanks.

FGGamboa avatar Jan 27 '20 21:01 FGGamboa

Adding "--optimize=-remove-dynamic-registrar" helped me

maxfkdk avatar Jun 05 '20 08:06 maxfkdk

@maxfkdk are there any adverse issues when enabling that? Did your app size or build times increase, performance degrade, etc? We're in the same boat but are reluctant to do something so heavy handed.

ChaseFlorell avatar Jul 16 '21 17:07 ChaseFlorell