question

WeiWen-3421 avatar image
0 Votes"
WeiWen-3421 asked JoanneRaye-5302 commented

Running Xamarin Forms iOS gave me a black screen

I had this problem since later yesterday (06/18/2021). At first I thought this may be related to my changes to the code. So I reverted back to where I knew it should work, and still I had this black screen. I did some search and tried all I could (updating Visual Studio, removing obj and bin folders, cleaning and rebuilding) and this problem still persists. Anyone has an idea what could be causing the black screen?

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered JoanneRaye-5302 commented

Hello,


Welcome to our Microsoft Q&A platform!

You can first check if you have upgraded everything to the latest (VS for mac , VS for windows , XCode ).

If the problem persists,you can try the following methods:

  • Restart PC and visual studio .


  • Delete bin and obj folder on windows side.


  • Reconnect mac agent .


  • Clean and rebuild .


  • Change simulator(iPhone X e,g)


  • Disable remote simulator to Windows (Tools - Options - Xamarin - iOS Settings)

If problem persists , attach your build log here (Help - Xamarin - Open Logs).


Best Regards,


Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.



Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JessieZhang-2116 I used Mac, not Windows. But I followed similar procedures, and the problem still persists. I couldn't find Help - Xamarin -Open Logs on Visual Studio Mac. How can I attach build log on the Mac version of Visual Studio?

0 Votes 0 ·

@JessieZhang-2116 It turned out that info.plist file was inadvertently and erroneously modified which caused the black screen. Now that info.plist is changed back, the issue is solved.

0 Votes 0 ·

Congrats and thanks for your support for xamarin. Have a nice day. :)

0 Votes 0 ·

Hi WeiWen-3421,

II am having the same issue. May i know which configuration did you change in infor.plist, please? Thanks.


0 Votes 0 ·

@MyintKyaw-5832 Somehow this was added in my info.plist. Once I have it removed, the black screen issue is gone:

  •  <key>UIApplicationSceneManifest</key>
     <dict>
         <key>UIApplicationSupportsMultipleScenes</key>
         <true/>
     </dict>
    
2 Votes 2 ·
Show more comments