Skip to content

Instantly share code, notes, and snippets.

@sunil360
Created January 13, 2015 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunil360/c18bfb847c69983a83c0 to your computer and use it in GitHub Desktop.
Save sunil360/c18bfb847c69983a83c0 to your computer and use it in GitHub Desktop.
System.Exception: Could not initialize an instance of the type 'UIKit.UIImage': the native 'initWithContentsOfFile:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false.
at Foundation.NSObject.InitializeHandle (IntPtr handle, System.String initSelector) [0x00094] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:463
at UIKit.UIImage..ctor (System.String filename) [0x0002e] in /Developer/MonoTouch/Source/monotouch/src/build/native/UIKit/UIImage.g.cs:91
at Xamarin.Forms.Platform.iOS.TabbedRenderer.SetupPage (Xamarin.Forms.Page page, Int32 index) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.TabbedRenderer.Reset () [0x00000] in <filename unknown>:0
at Xamarin.Forms.NotifyCollectionChangedEventArgsExtensions.Apply (System.Collections.Specialized.NotifyCollectionChangedEventArgs self, System.Action`3 insert, System.Action`2 removeAt, System.Action reset) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.TabbedRenderer.OnPagesChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.TabbedRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement view) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.Platform.WillAppear () [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewWillAppear (Boolean animated) [0x00000] in <filename unknown>:0
at at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr)
at UIKit.UIWindow.MakeKeyAndVisible () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/build/native/UIKit/UIWindow.g.cs:247
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.SetMainPage () [0x00000] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.FinishedLaunching (UIKit.UIApplication uiApplication, Foundation.NSDictionary launchOptions) [0x00000] in <filename unknown>:0
at MemberPortal.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x0002f] in /Users/tajinder/Downloads/MemberPortal/MemberPortal/MemberPortal.iOS/AppDelegate.cs:48
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
at MemberPortal.iOS.Application.Main (System.String[] args) [0x00008] in /Users/tajinder/Downloads/MemberPortal/MemberPortal/MemberPortal.iOS/Main.cs:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment