iOS app displaying white blank screen on iPad after update to Xcode 11

luislemaluislema Member ✭✭

Hello, I have an iOS app developed on Visual Studio 2019 and paired to a Mac. The app was displaying correctly on both iPhones and iPads until I updated Xcode on the Mac to version 11. Since then Apple is rejecting my app because is displaying a white blank screen on iPads. I have validated the issue on Xcode Simulator and on a physical iPad. I am attaching a file of how it looks when the app is launched. Does anyone have an idea of why this is happening?

Best Answer

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Does the problem also happen on iPhone ?

    How you set your initial viewController ? Write code in AppDelegate or using Storyboard ?

    Here is a similar thread : https://stackoverflow.com/questions/58207755/ios13-on-xcode-11-black-screen-even-after-adding-scenedelegate-and-updating-info.

    Checked the discussion , he solved it by fixing storyboard.

  • luislemaluislema Member ✭✭
    edited October 14

    No, the problem only happens on iPad.

    The app is very basic so I didn't change much from the Visual Studio template:

    namespace PlataformaLatina.Views{
    [DesignTimeVisible(false)] public partial class Inicio : ContentPage
    { public Inicio()
    { InitializeComponent();
    } }
    ``}

    namespace PlataformaLatina.iOS
    {
    [Register("AppDelegate")]
    public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
    global::Xamarin.Forms.Forms.Init();
    LoadApplication(new App());

            return base.FinishedLaunching(app, options);
        }
    }
    

    }

  • luislemaluislema Member ✭✭

    No, the problem is only on iPad.

    The app is very basic so I didn't change much from the Visual Studio template:

    namespace PlataformaLatina.Views
    {
    [DesignTimeVisible(false)]
    public partial class Inicio : ContentPage
    {
    public Inicio()
    {
    InitializeComponent();
    }
    }
    }

    namespace PlataformaLatina.iOS
    {
    [Register("AppDelegate")]
    public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
    public override bool FinishedLaunching(UIApplication app, NSDictionary options)
    {
    global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App());
    
            return base.FinishedLaunching(app, options);
        }
    }
    

    }

  • luislemaluislema Member ✭✭

    Yes, I am using MasterDetailPage. I will try that solution and let you know.

    Thanks!

  • luislemaluislema Member ✭✭

    Updating Xamarin Forms to the latest version solved the issue!

    Thanks!

Sign In or Register to comment.