I am trying to run console.log from a js file for iOS application react native.
Before this, I have tried to use react native's debugging feature 'Shake Device' in which I couldn't succeed.
Now I am trying to run the command line debug console by react-native log-ios
. It works with simulators but not with the real device and it gives me this error:
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.