The pit that Macac App Inspetor passed through
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