0

In the React Native documentation (0.40) "Running on Device" for iOS on MacOS, it suggests using adb reverse to connect to the development server over USB. This method is, in fact, the recommended method.

I understand this works for Android, but I wasn't aware it would work for iOS devices. Whenever I try adb reverse tcp:8081 tcp:8081 as per the docs, it gives me error: no devices/emulators found.

After searching on Google for using adb with iOS/iPhone, I wasn't getting anything. I also didn't find anything on React Native's issues regarding it, and Stack Overflow's closest thread is related to debugging with adb, not running React Native (or iOS generally) through USB using adb.

Does anyone have any experience using this method successfully?

1
  • 3
    I think this is a documentation error. The same section appears in the Android version, where it's probably appropriate. adb is definitely only used with Android devices.
    – jcaron
    Jan 7, 2017 at 0:29

1 Answer 1

2

As mentioned in comment by jcaron, there was an issue in the doc, adb is Android specific.

A pull request was sent and accepted a few days ago.

The changes are already reflected in the next version: http://facebook.github.io/react-native/releases/next/docs/running-on-device.html

1
  • 1
    Thanks! Pity there isn't a nice way to do debugging over USB for iOS, but hopefully that'll save someone else the head scratching I had over this.
    – James Wang
    Jan 9, 2017 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.