简体   繁体   中英

Xcode project (zip downloaded from github) builds, but I get a black screen in the simulator

I downloaded the .zip of one of my repositories on github and it builds perfectly. However, the simulator shows a black screen upon loading. I checked the repo for missing files, but have so far found no irregularities. The info.plist file is the same as my local copy, as are the main.storyboard and launchscreen.storyboard files. I think I'm still missing something here. How can I fix this?

转到故事板中的第一个屏幕,并在其Attributes inspector中将Is Initial View Controller设置为 true

Try checking your Launch Screen File and Main Interface in Target's General tab. It'd be set to LaunchScreen.storyboard and Main.storyboard (In general)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM