2021年1月2日星期六

Failed to instantiate the default view controller for UIMainStoryboardFile

I am writing a small sample app with Xamarin and MvvmCross 6.4.2. I completed the Xamarin.Android version and am now starting the Xamarin.iOS version. I created a view controller for the first screen:

public class SignInViewController : MvxViewController<SignInViewModel>  {      public SignInViewController() : base(nameof(SignInViewController), null)      {                }        public override void ViewDidLoad()      {          // never gets called...            base.ViewDidLoad();      }  }  

When I run the app, I just get a blank screen and ViewDidLoad never gets called. In the application output it says:

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

My Main.storyboard is blank and I tried to modify it in Xcode Interface Builder to set my SignInViewController as the entry point, but I couldn't figure out how.

https://stackoverflow.com/questions/65471710/failed-to-instantiate-the-default-view-controller-for-uimainstoryboardfile December 28, 2020 at 08:14AM

没有评论:

发表评论