Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12 - Storyboard screens showing up empty/black (using m1 macbook)

We have tried both iOS 14 and 13. In both cases, the storyboard screens show up like this.

Has anyone else faced this issue and was able to solve it? Or should we revert back to xcode 11 or 10 in order to solve this?

Empty storyboard screens

like image 502
Jansen Myburgh Avatar asked Jan 08 '21 07:01

Jansen Myburgh


People also ask

Does Xcode work on M1 Macs?

To take advantage of the incredible performance of Macs with M1, M1 Pro, and M1 Max, use Xcode 13.1 to build your Mac app as a Universal app.

Why is Main Storyboard not showing up in Xcode?

You have SwiftUI enabled in your project, which does not use storyboards anymore. Your layout is inside the ContentView. swift file. If you do want to work the old way, with storyboards, you should uncheck 'Use SwiftUI' in the project creation screen.


1 Answers

I have similar issue with Xcode 12.4 on M1 Macbook Pro. As a workaround disable Rosetta Mode when working with storyboard. Follow the below steps

  1. Quit Xcode and open finder and go to Applications folder
  2. Right click on Xcode App and select Get Info
  3. Uncheck "Open using Rosetta" option
  4. Open Xcode, storyboard will work now

Note: With Rosetta Disabled, I wasn't able to build/run the app. So I was toggling the Rosetta mode. I think Apple will fix it sooner.

UPDATE

Xcode 12.5+ fixed this issue.

like image 99
Anand Avatar answered Oct 27 '22 04:10

Anand