Could not find a storyboard named 'Main' in bundle

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

    Swift 5.1 & xCode 11.2

    In my case, I forgot to change Storyboard Name in Info.plist

    Info.plist source code

        
            UIApplicationSupportsMultipleScenes
            
            UISceneConfigurations
            
                UIWindowSceneSessionRoleApplication
                
                    
                        UISceneConfigurationName
                        Default Configuration
                        UISceneDelegateClassName
                        $(PRODUCT_MODULE_NAME).SceneDelegate
                        UISceneStoryboardFile
                        AccountViewController
                    
                
            
        
    

提交回复
热议问题