React Native - 打包程序未启动 [英] React Native - Packager not starting

查看:49
本文介绍了React Native - 打包程序未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经学习了一些 React Native 课程并将我的所有应用程序存储在一个项目"文件夹中.一切正常,但突然间我似乎遇到了一些问题,当我在特定项目的文件夹中运行 react-native run-ios 时,打包程序无法自动启动.模拟器弹出,但它只显示我以前的应用程序,不包含我刚刚用 react-native init new-app 创建的新应用程序.我一直在四处寻找,似乎找不到任何解决方案.有什么想法吗?

I've been going through some React Native courses and storing all my apps in a 'projects' folder. Everything has been working fine, but all of a sudden I seem to be having some issues with the packager not automatically starting up when i run react-native run-ios while I'm in the specific project's folder. The simulator pops up, but it only shows my previous apps and doesn't contain the new one I just created with react-native init new-app. I've been searching around and I can't seem to find any solution to this. Any thoughts?

这是终端中显示的最后一行:

This is the last line showing in the terminal:

IDEDerivedDataPathOverride = /Users/[MY_USER]/Documents/projects/new-app/ios/build

推荐答案

所以经过一些挖掘和测试后,我意识到这个问题与 Sierra 中将文件存储在 iCloud Drive 中的新功能有关.不确定具体细节,但当我关闭此功能后问题就解决了.

So after some digging and testing, I realize the issue is tied to the new feature in Sierra that stores your files in iCloud Drive. Not sure exactly of the specifics, but the issue was resolved when I turned this feature off.

这篇关于React Native - 打包程序未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆