Could not find a storyboard named 'Main' in bundle

前端 未结 24 1613
无人共我
无人共我 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:20

    This error come, while you recover your main.storyboard file from trash after delete your file. I also faced same issue yesterday.

    You have to set the location path of the main.storyboard as Relative to Group in file inspector of main.storyboard. After that in the same attribute, you have to insure the check mark on your app target(As you can see in attached picture).

提交回复
热议问题