WaveMaker Docs

WaveMaker Docs

  • Get started
  • Widgets
  • Mobile
  • How-to
  • Enterprise
  • Releases
  • Blog
  • Sign-in

›React Native

Mobile Development

  • React Native or Cordova

React Native

  • Welcome
  • Features
  • Supported Widgets
  • Supported Variables
  • Test Run Preview
  • Debug Web Preview
  • Inspection Framework
  • Mobile Preview
  • Styles
  • Theme
  • Export as Zip
  • Build Installers
  • Debug APK
  • Debug IPA

Cordova

  • Building Hybrid Mobile Apps
  • Native Device Support
  • First Mobile App
  • Mobile Design

    • Mobile Page Design
    • Gesture Support
    • Mobile Tabbar
    • Mobile Navbar

    Mobile Installer

    • Test Run (Preview)
    • Debugging Mobile Apps
    • Test via Live Sync
    • Testing Hybrid Mobile Apps using WaveLens
    • Mobile Build - Android
    • Generating iOS and Android Distribution Certificates
    • Export Cordova zip
    • Mobile Build - Manual
    • Mobile Build - AppChef

    Mobile Integrations

    • Mobile Integrations - Amazon Mobile Analytics
    • Mobile Integrations - Amazon SNS
    • Using Push Notifications in Mobile Device
    • Invoking Web App APIs in Mobile Apps

    Offline Features

    • Offline Data Support
    • Implementation
    • Switching between Offline and Online Mode
Edit

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.

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

Last updated on 9/8/2022 by Srinivasa Rao Boyina
← Debug APKBuilding Hybrid Mobile Apps →
  • Pre-requisites
    • Installation
  • Preparing for Debugging an iOS App
  • Step-by-step Instructions
WaveMaker
  • PRICING
  • PARTNERS
  • CUSTOMERS
  • ABOUT US
  • CONTACT US
Terms of Use | Copyright © 2013-2023 WaveMaker, Inc. All rights reserved.