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. My code is here:

https://drive.google.com/file/d/1OwqkENAMLDp6BcfkJAI18LSxfPGRmFI2/view?usp=sharing

Note: I don't want to upgrade to MvvmCross 7 as it's still under development.



from Recent Questions - Stack Overflow https://ift.tt/37Uj1OK
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation