Home > Software engineering >  Black screen after renaming Xcode project in Xcode Swift
Black screen after renaming Xcode project in Xcode Swift

Time:04-14

I made the mistake of renaming my app project in Xcode and after many issues, I finally got to build the project without issues. Now the app builds and for a second I see the navigation title of the app and the screen, but after a second the whole thing turns black and I don't know how to fix it. I already cleared Xcode Cache. checked to see if the main.storyboard is located correctly and it does, but the issue persists.

Can someone help, please? I spent many hours on this project ...

image screenshot

gif screenshot

CodePudding user response:

I assume you may not specify the Scene Configuration in Info.plist.

The structure

- Application Scene Manifest
  - Scene Configuration
    - Application Session Role
      - Delegate Class Name

You can input Delegate Class Name with value $(PRODUCT_MODULE_NAME).SceneDelegate

Hope it can be useful without a reproducible project

  • Related