error: Build input file cannot be found: LaunchScreen.storyboard and Main.storyboard in Xcode

error: Build input file cannot be found: LaunchScreen.storyboard and Main.storyboard in Xcode

我在 Mac 中第一次打开这个项目,当我尝试构建它时,它给了我这些拖曳错误,您可以在屏幕截图中看到。 我在项目中已经有了这些文件,我想我只需要为它们设置路径。 当你第一次在你的机器上打开一个项目时你会做什么? a screen shot for the errors

我想您可能已经删除了文件 LaunchScreen.storyboard。一旦检查你的文件。

经过我的fowling,构建成功了: 1- 删除两个文件(LaunchScreen.storyboard 和 Main.storyboard)并再次添加它们,这是 post 我从 https://github.com/react-native-community/upgrade-support/issues/99

得到解决方案的地方

2- 重命名新文件并删除末尾的 .xml

3- select LaunchScreen 作为主界面 https://i.stack.imgur.com/65P0S.png