【发布时间】:2020-05-28 03:10:55
【问题描述】:
我对原生和 expo 反应有些陌生,但我一直在尝试将测试版本部署到我的手机,但不知道如何构建它。
对于一些额外的上下文,我在 Expo 中构建了大部分内容,然后将其弹出(是的,我知道这不是最佳选择,但我喜欢 Expo 提供的功能)。我将其弹出是因为我需要 Expo 目前不支持的 NFC 支持,所以我在弹出后在 Xcode 中手动添加了它。
当我打开 Xcode 工作区并尝试将其部署到我的手机时,我收到以下错误:
Error: Failed to connect to the packager server. If you did not start this build by running 'react-native run-android', you can start the packager manually by running 'react-native start' in the project directory. (Error: Request to packager server failed: 500)
at /Users/user/Downloads/honorProj-reactNatveFinal/honorProj/reactNative/ethelontisApp/node_modules/expo-updates/scripts/createManifest.js:40:11
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Command PhaseScriptExecution failed with a nonzero exit code
我知道它说在项目目录中运行react-native start(尽管我也不完全是at /Users/... 所指的内容)但真正让我震惊的是它提到了react-native run-android,这看起来不像应该是相关的。
最后,我完全迷失了 Command PhaseScriptExecution 是什么。
感谢您的帮助。
【问题讨论】:
标签: xcode react-native expo react-native-ios