Could not find a storyboard named 'Main' in bundle

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

    Two different solutions that worked for me after upgrading to Xcode 10.1:

    • In File->Workspace (or Project) Settings. Switch to Legacy Build System.

    • In your targets Build Phases, remove the Base.lproj folder from Copy Bundle Resources (if listed) and make sure each of your storyboards are listed and copied separately instead.

    After applying either of the fixes above make sure you Clean Build Folder from the Product menu once, otherwise the fixes might not work properly.

提交回复
热议问题