Images not loading on Xamarin.Forms iOS after update from 2.1.5 to 2.1.7
I updated FFImageLoading from v2.1.5 to v2.1.7 with Nuget, and images no longer load in my iOS application. I'm using Xamarin.Forms v2.3.0.117, and the issue happens only on iOS (I'm using an iPhone 6s simulator running iOS 9.3). I had no issues with image loading before I updated FFImageLoading to 2.1.7, and I have not done any changes in my project other than updating FFImageLoading.
Stack trace:
2016-09-08 22:07:05.486 ForgeiOS[34554:506423] An error occured while retrieving placeholder's drawable. System.MissingMethodException: Method 'CGSize..ctor' not found. at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine] (System.Runtime.CompilerServices.TStateMachine& stateMachine) [0x00039] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:833 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder'1[TResult].Start[TStateMachine] (System.Runtime.CompilerServices.TStateMachine& stateMachine) [0x00000] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:447 at FFImageLoading.Work.ImageLoaderTask.GetImageAsync (System.String sourcePath, ImageSource so urce, Boolean isPlaceholder, System.IO.Stream originalStream) [0x00044] in <filename unknown>:0 at FFImageLoading.Work.ImageLoaderTask+<RetrieveImageAsync>d__14.MoveNext () [0x00058] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Thread ing.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable'1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:580 at FFImageLoading.Work.ImageLoaderTask+<LoadPlaceHolderAsync>d__13.MoveNext () [0x00109] in <filename unknown>:0
I had a similar problem and I believe it was a Cycle 6/7 incompatibility. I think 2.1.5 works with XF2.3.0.x (and Xamarin iOS 9.6) and 2.1.7 works with XF2.3.1(and Xamarin iOS 9.8).
According to https://developer.xamarin.com/api/type/CoreGraphics.CGSize/ used constructor is a valid one, so I suppose it was a temporary error with a specific Xamarin.iOS version. I couldn't reproduce it - if you can, please give detailed Xamarin.iOS version info and reopen the issue. Thanks.