简体   繁体   English

React Native ios 和守望者

[英]React Native ios and watchman

I'm trying to run my react native project (AwesomeProject) in macOS Catalina 10.15, watchman 4.9, XCode 11.1, ios 13.我正在尝试在 macOS Catalina 10.15、watchman 4.9、XCode 11.1、ios 13 中运行我的 react native 项目(AwesomeProject)。

it shows to me that Build Succeed, but the app couldn't be installed at this time, also the simulator shows this error in the running Metro:它向我显示构建成功,但此时无法安装应用程序,模拟器也在运行的 Metro 中显示此错误:

Loading dependency graph...jest-haste-map: Watchman crawl failed.正在加载依赖关系图...jest-haste-map:Watchman 抓取失败。 Retrying once with node crawler.使用节点爬虫重试一次。

Usually this happens when watchman isn't running.这通常发生在守望者不运行时。 Create an empty .watchmanconfig file in your project's root folder or initialize a git or hg repository in your project.在项目的根文件夹中创建一个空的.watchmanconfig文件,或在项目中初始化 git 或 hg 存储库。

Error: Watchman error: query failed: synchronization failed: Operation timed out.错误:守望者错误:查询失败:同步失败:操作超时。 Make sure watchman is running for this project.确保 watchman 正在为此项目运行。 See https://facebook.github.io/watchman/docs/troubleshooting.html .请参阅https://facebook.github.io/watchman/docs/troubleshooting.html Loading dependency graph, done.加载依赖图,完成。

Also is it okay that my simulator all the time shows black screen?我的模拟器一直显示黑屏也可以吗? can anyone help me, please?任何人都可以帮助我吗?

Finally, after hours of searching... solved by myself, the error was in the ios 13.1, after downloading and installing ios 12 it works correctly.最后,经过数小时的搜索......我自己解决了,错误出现在 ios 13.1 中,下载并安装 ios 12 后它可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM