Could not find a storyboard named 'Main' in bundle

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

    1. Open you storyboard file
    2. Then Click File Inspector
    3. Then select "Target Membership" and check your project
    4. Do the same for ViewController file !!!important part if you use ViewController.swift or ViewController.m with your storyboard!!!

提交回复
热议问题