小编Dev*_*ebs的帖子

react-native log-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)

ios react-native react-native-ios

8
推荐指数
1
解决办法
396
查看次数

标签 统计

ios ×1

react-native ×1

react-native-ios ×1