Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

ipad

xamarin

I have a Xamarin.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 (see image below!).

I have validated the issue on Xcode Simulator and on a physical iPad. Does anyone have an idea of why this is happening?

ipad white blank screen on launch

like image 226
Luis Lema Avatar asked Oct 14 '19 06:10

Luis Lema


People also ask

Does Xcode work on iPad?

Apps for the Apple ecosystem are not currently built in Swift Playgrounds or anything nearly as fun and colorful; they're largely built and distributed in Xcode, a massive and complicated application that only runs on Macs. It's famously difficult to learn.

Can xamarin run on iOS?

Xamarin. iOS works with Visual Studio Community, Professional, and Enterprise editions, on a standalone or virtual machine.


2 Answers

I had exactly the same problem as you, and even though it could be you already got a solution i will share how i got it working at the end... for those who could still have that same problem.

Note: in my case the issue appeared only on Apps built with XCode 11 that use MasterDetailPage on Xamarin.Forms version < 4.0 and running on iPad: the easiest solution to this issue is simply updating Xamarin.Forms to the latest version (or simply downgrading XCode to a previous version!), but if you (as i was) are not able to update Xamarin.Forms, then keep reading.


As mentioned in this thread from the Xamarin Forums all you have to do is copy the latest MasterDetailPage renderer from the Xamarin.Forms source and do a few changes.

Since the final script is too long to be added here as text (it exceeds the maximal number of allowed lines), and since i could not find a way to upload a text file, i would point to the thread in Xamarin Forums where i added that script with all the changes needed:

TabletMasterDetailRenderer

Note: Do not forget to change {YourNamespace} for your correct namespace!

like image 65
deczaloth Avatar answered Oct 13 '22 00:10

deczaloth


This is fixed in at least Xamarin Forms 3.6.0.709228.

like image 24
Pellet Avatar answered Oct 13 '22 01:10

Pellet