Dev*_*ebs 8 ios react-native react-native-ios
我试图从一个js文件运行console.log为iOS应用程序反应原生.
在此之前,我曾尝试使用react native的调试功能' Shake Device ',但我无法成功.
现在我试图通过react-native log-ios运行命令行调试控制台,但它正在使用模拟器而不是真实设备并给出错误.
No active iOS device found
(node:26724) UnhandledPromiseRejectionWarning: undefined
(node:26724) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:26724) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Run Code Online (Sandbox Code Playgroud)
小智 1
以下内容对我有用(在 React Native 0.68.2 上测试):
npm install -g ios-deploy
# Run on a connected device, e.g. Sadia's iPhone:
react-native run-ios --device "Sadia's iPhone"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
396 次 |
| 最近记录: |