uniapp real machine debugging steps

Use uniapp to debug Apple and Android phones on the real machine.

1. First use the data cable to connect the mobile phone and the computer

2.

2.1 Android phone

After the mobile phone is connected to the computer with a data cable, click Run on the hbuilder menu bar --> Run to the phone or emulator --> Download the plug-in to run on the real machine. After the download is complete, click Run again, and the connected mobile phone model will appear. Select a mobile phone, and hbuilder will automatically download the plug-in. After the plug-in download is complete, select the mobile phone again. At this time, a hbuilder will be downloaded on the mobile phone to run the base software. After the software download on the mobile phone is completed, enter the software to perform real machine debugging.

2.2 iPhone

Much the same as an Android phone. The difference is: after the plug-in is downloaded, click to run, but there is no Apple mobile device connected to the computer, you need to download an iTunes software first. After the download is complete, the mobile device will appear. If the hbuilder running base downloaded on the Apple mobile phone shows untrusted developers and cannot be used, some permissions need to be enabled. Device-->General-->Device Management-->Enterprise Application-->Select Trust. Then you can carry out real machine debugging.

2.3 WeChat applet debugging

Run --> Run to Mini Program Simulator --> Run to WeChat Developer Tools --> Configure the path of WeChat Developer Tools (if the configuration is wrong here and want to modify it, click Run --> Run to Mini Program Simulation Device --> Run Settings, modify in the Run Settings, you can also configure Alipay, Baidu....)

Open the tool in WeChat Developer Tools

Settings-->Security Settings-->Service Port-->Open

Then re-run the WeChat developer tool from hbuilder. Finish.

Guess you like

Origin blog.csdn.net/weixin_62462734/article/details/130001784
Recommended