Ffimageloading: iOS System.IO.FileNotFoundException: Could not load file or assembly 'FFImageLoading.Transformations' or one of its dependencies

Created on 13 Jun 2016  路  6Comments  路  Source: luberda-molinet/FFImageLoading

Very similar to issue #170 except I'm calling the init in AppDelegate.cs.

` [Register ("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
CachedImageRenderer.Init ();

        global::Xamarin.Forms.Forms.Init ();

        Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init ();

        LoadApplication (new App ());

        return base.FinishedLaunching (app, options);
    }
}`

screen shot 2016-06-13 at 12 52 36 pm

screen shot 2016-06-13 at 1 34 21 pm

I've tried to uninstall and re-install all FFImageLoading packages and dependencies (because I saw it suggested elsewhere) from the common project and iOS project but didn't help.

Most helpful comment

@tomcrusader @snaderi

  • Do you have FFImageLoading.Transformations added to both shared and platform specific projects?
  • If yes, it's Xamarin Linking problem, the assembly is cut out by the linker. To avoid that, you can add this just after CachedImageRenderer.Init(); in a platform specific project (important):

C# var ignore = new CircleTransformation();

@molinch We could add something like Transformations.Init(); for such cases.

All 6 comments

Any idea聽@daniel-luberda ?

I have exactly this error, which of course is a major blocker

@tomcrusader @snaderi

  • Do you have FFImageLoading.Transformations added to both shared and platform specific projects?
  • If yes, it's Xamarin Linking problem, the assembly is cut out by the linker. To avoid that, you can add this just after CachedImageRenderer.Init(); in a platform specific project (important):

C# var ignore = new CircleTransformation();

@molinch We could add something like Transformations.Init(); for such cases.

@daniel-luberda That resolved it. Thank you.

Edit: That meaning your suggestion to add the CirleTransformation.

Might want to remark this in the documentation

I solved by adding a reference to missing type before LoadApplication

// workaround for iOS compilation
// @url  https://github.com/UXDivers/Grial-UI-Kit-Support/issues/52#issuecomment-230461937
var workaround = typeof(CustomControls.ExtendedPicker);

as in https://github.com/UXDivers/Grial-UI-Kit-Support/issues/52

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PostImpatica picture PostImpatica  路  4Comments

K232 picture K232  路  3Comments

paleicikas picture paleicikas  路  5Comments

angelru picture angelru  路  4Comments

Pinox picture Pinox  路  5Comments