

English
In the past, when an App was packaged in the cloud, it was necessary to submit the application code, packaging certificate, etc. to the DCloud cloud packager, and the installation package apk/ipa was generated in the cloud packager's native development environment. Although the DCloud cloud server does not save the developer's application code and certificate and other information, the developer may still be worried or worry about the risk of interception and leakage during network transmission.
Offline packaging is not only inconvenient, but also has two important functions that cannot be used:
HBuilderX 2.9.9 version adds the Android platform safe packaging function, no longer submit application code and packaging certificate to the cloud server, but also reduce the pressure on the cloud packager and shorten the cloud packaging waiting time during peak hours. HBuilderX3.0.7 version adds iOS platform support safe packaging function (only supports MacOS)
first package
process. The following conditions will also trigger the first package
process:first packaging
processfirst packaging
process to generate a new version of the native code packageBecause most packages do not change the native part (mainly manifest.json), only the front-end code is modified. At this point, there is no need to download the native package from the cloud packager, and the packaging speed will be very fast.
The new version of HBuilderX does not require additional operations when packaging in the cloud. By default, "Packaging with peace of mind" will be checked, as shown in the following figure:
If the Anxin package plug-in is not installed, the following prompt box will pop up, click "Install" to continue
After the plugin is installed, you need to click the "Package" button again to submit the package.
Automatically save to the "unpackage/release/apk/" directory of the project after packaging
If this directory is cleared, the next packaging will execute the first packaging logic.
non-first package
of safety package
without the limit on the number of packages.Summary of Android peace of mind packaging issues
Question: Some users have reported that the Windows computer and the console prompt that Android Anxin has been packaged successfully, enter the corresponding directory (unpackage/release/apk), and the apk file cannot be found in the directory. Cause: Unpackage/release/apk directory, no write permission, failed to move apk file.
Solution:
In some cases, when submitting a peace of mind package for the first time, you may encounter the following errors:
[Error] W: fakeLogOpen(/dev/log_crash) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Info] I: Copying libs... (/lib)
[Info] I: Building apk file...
[Info] I: Copying unknown files/dir...
[Info] I: Built apk...
[Error] Apk tool compile package to apk failed
[Info] 制作结果:Failed. Reason:
** Workaround: ** Resubmit peace of mind
In the error log, the following log appears:
[Error] W: ERROR: 9-patch image C:\xxxxx\res\drawable-hdpi\splash.9.png malformed.
[Error] W: No marked region found along edge.
[Error] W: Found along top edge.
** Reason: ** Startup image xxx.9.png
is not a valid 9.png
image, which is caused by a format error.
** Workaround: ** Regenerate a valid 9.png image
** Remarks: ** Some users may ask questions. For the same .9.png project, why does the traditional package succeed and the peace package fails? Because: Anxin packaging and verification mechanism is more strict. ** Documents:** .9.png image related documents
In the error log, the following log appears:
[Info] Error occurred during initialization of VM
[Info] Could not reserve enough space for 1048576KB object heap
[Error] 制作结果:Failed. Reason:
** Solution:**
** Remarks: ** HBuilderX 3.1.10 and above versions take effect
Summary of ios peace of mind packaging issues
In the error log, the following log appears:
[Error] HBuilder.xcarchive/Payload/HBuilder.app: replacing existing signature
[Error] Warning: unable to build chain to self-signed root for signer "xxxxxxxxxx“”
[Error] HBuilder.xcarchive/Payload/HBuilder.app: errSecInternalComponent
Cause: It may be that the user manually clicks to install the certificate, which causes the package signature to fail.
** Solution: ** Open Keychain Access, delete the certificates manually installed by relevant users, and then repackage them (the figure below is for reference only, and developers need to determine which certificates are manually installed certificates).
If you encounter peace of mind packaging problems and cannot solve it, please add QQ group 827137391.
To enter the group, you need to provide the information of operating system
and HBuilderX version number
. For questions, please submit error log
or screenshot
.
This group is only for feedback on peace of mind packaging issues, please do not publish irrelevant information.