Skip to main content
Version: v11.6.2

IPA: Debugging React Native iOS App Installed in Mobile


You can install a WaveMaker-developed React Native app on your mobile device and debug the application. In this document, we use IPA files to debug an iOS application.

danger

This is deprecated. Please check Flipper to debug applications.

Pre-requisites

  1. A Mac book with the latest Mac OS.
  2. iPhone with iOS 13 or later
  3. Chrome or Firefox browser

Installation

  1. Install Expo
npm install -g expo-cli
  1. Install React Native
npm install -g react-native
  1. Install React Dev Tools
npm install -g react-devtools
  1. Install wm-reactnative-cli
npm install -g @wavemaker/wm-reactnative-cli

Preparing for Debugging an iOS App

  1. Ensure the iPhone is connected to your system with a USB.
  2. Export and download the React Native zip from WaveMaker Studio.
  3. Perform an iOS build using wm-reactnative-cli.
  4. Open ${build_destination}/ios folder.
  5. Open the file with workspace as an extension in Xcode.
  6. Connect your iPhone to the Mac.
  7. Select your iPhone or simulator and click on the Build button.

Xcode_build

Step-by-step Instructions

tip

The following procedure is the same for Android and iOS apps.

  1. Shake the phone until the following screen pops up.

expo developer menu

  1. In the developer menu, click on the Debug Remote JS option to debug the JavaScript of the app. The following window should open in the Chrome browser.

debugger-ui

  1. Open developer tools on this page. You can perform JS debugging.
  2. Execute react-devtools on a terminal.
note

If the installed react-devtools are incompatible, install the suggested tools when the react-devtools are opened and follow this step again.

  1. Click on Reload app on the above page.
  2. Now, react-devtools should show the component tree.

React Dev Tools