Could not find a storyboard named 'Main' in bundle

前端 未结 24 1571
无人共我
无人共我 2020-12-01 00:26

I\'m getting a strange error: \'Could not find a storyboard named \'Main\' in bundle NSBundle\' when trying to run my app on a real iOS device.

I have

24条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 01:01

    An update for applications created for iOS 13.0 and above. (Xcode 11)

    If you get the error "Could not find a storyboard named 'Main' in bundle even after changing the "Main storyboard File base name" in the info.plist and "Main Interface" under Deployment in Target.

    Then you have to change another entry in the info.plist file.

    1. Open the info.plist file.
    2. Expand "Application Scene Manifest".
    3. Expand "Scene Configuration".
    4. Expand the item 0 under "Application Sessions Role" and then change the storyboard name there.

    And your application will start working.

提交回复
热议问题