Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
snaderi opened this issue Jun 13, 2016 · 6 comments

Comments

@snaderi
Copy link

snaderi commented Jun 13, 2016

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.

@molinch
Copy link
Collaborator

molinch commented Jun 15, 2016

Any idea @daniel-luberda ?

@thomashagstrom
Copy link

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

@daniel-luberda
Copy link
Member

daniel-luberda commented Jun 16, 2016

@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):
var ignore = new CircleTransformation();

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

@snaderi
Copy link
Author

snaderi commented Jun 16, 2016

@daniel-luberda That resolved it. Thank you.

Edit: That meaning your suggestion to add the CirleTransformation.

@thomashagstrom
Copy link

Might want to remark this in the documentation

@nicolabeghin
Copy link

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 UXDivers/Grial-UI-Kit-Support#52

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants