Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The pit that Macac App Inspetor passed through

Shulou Source: shulou.com Published: 2022-06-03 06:11:30 10月04日 Update

The pit that Macac App Inspetor passed through

Environmental needs

To install app-inspector, you need to install Node.js first. Domestic users can install cnpm to speed up the installation of NPM modules.

In addition, it is recommended to install macaca-cli.

$npm install macaca-cli-g

You need to prepare the environment of the mobile platform that you need to view. Android Please install Android SDK,iOS install Xcode.

Then use the macaca command line tool to check whether the environment is ready.

$macaca doctor

If you see a bunch of green text output, your environment is OK. Then you can install and use app-inspector.

Installation

$npm install app-inspector-g

Use

Start from the command line

$app-inspector-u YOUR-DEVICE-ID

For information about how to get the device ID, see the get device ID section.

Open the interface

Your command line will output the following text:

Inspector start at: http://192.168.10.100:5678

Then open the output link in the browser: http://192.168.10.100:5678. Chrome browser is recommended.

Note:

The above is the success page, and you want to configure it in the middle:

Open:

/ usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD

Use xcode to open:

Modify the location:

App-inspector-u UUid (mobile phone)-verbose

Tags: Environment command output text browser device preparation recommendation browsing success location tools platform mobile phone module user interface green speed part Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux MariaDB Shulou Tech Info Docker