All Products
Search
Document Center

Mobile Platform as a Service:Security Guard result codes

Last Updated:Jan 29, 2026

The Security Guard error codes described in this topic apply to both the Android and iOS operating systems.

The error codes are divided into the following three categories:

If an error occurs, an error code in the `SG ERROR: xxxx` format is returned in the Xcode console. The meanings of these codes are described below.

General error codes

Error code

Meaning

101

Invalid parameter. Check the input parameters.

102

The main plugin failed to initialize.

103

A required plugin is missing. When this error code is printed, the name of the missing plugin is also displayed. Follow the instructions provided.

104

A plugin was imported but failed to load. This is usually because -all_load or -ObjC is not added to the other linker flags. Add the flag to resolve the issue.

105

A plugin was imported, but its dependent plugin is missing. When this error code is printed, the name of the missing plugin is also displayed. Follow the instructions provided.

106

A plugin was imported, but the version of its dependent plugin is not compatible. When this error code is printed, the required version number is also displayed. Follow the instructions provided.

107

A plugin was imported, but its version is not compatible.

108

A plugin was imported, but its dependent resource is missing.

109

A plugin was imported, but the version of its dependent resource is not compatible.

121

There is an issue with the image file. This usually occurs because the bundle ID used to generate the image file does not match the bundle ID of the current application.

122

The image file was not found. Make sure the image file is in the project folder.

123

The image file format is invalid. Regenerate the image file.

124

The version of the current image is too old.

125

Initialization with authcode failed.

199

Unknown error. Retry the operation.

201

Invalid parameter. Check the input parameters.

202

There is an issue with the image file. This usually occurs because the bundle ID used to generate the image file does not match the bundle ID of the current application.

203

The image file was not found. Make sure the image file is in the project folder.

204

The image file format is invalid. Regenerate the image file.

205

The content of the image file is incorrect. Regenerate the image file.

206

The key specified in the parameter was not found in the image file. Confirm that the key exists in the image file.

207

The input key is invalid.

208

Out of memory. Retry the operation.

209

The key for the specified index does not exist.

212

Upgrade to a new version of the image. The current image version is too old.

299

Unknown error. Retry the operation.

Static data encryption and decryption error codes

Error code

Meaning

301

Invalid parameter. Check the input parameters.

302

There is an issue with the image file. This usually occurs because the APK signature used to obtain the image file does not match the APK signature of the current program. Regenerate the image using the current program's APK.

303

The image file was not found. Make sure the image file is in the res\drawable folder.

304

The image file format is invalid. Regenerate the image file. A common cause is mixing second-party and third-party images. These images are not compatible and must be generated separately.

305

The content of the image file is incorrect. Regenerate the image file.

306

The key specified in the parameter was not found in the image file. Confirm that the key exists in the image file.

307

The input key is invalid.

308

Out of memory. Retry the operation.

309

The key for the specified index does not exist.

310

The data to be decrypted is not decryptable.

311

The data to be decrypted does not match the key.

312

The current image version is too old. Upgrade to a new version of the image.

399

Unknown error. Retry the operation.

401

Invalid parameter. Check the input parameters.

402

Out of memory. Retry the operation.

403

Failed to get system properties. Confirm that no software is blocking access to system parameters.

404

Failed to get the key from the image file. Confirm that the format and content of the image file are correct.

405

Failed to get the on-the-fly encryption key. Retry the operation.

406

The data format does not meet decryption requirements.

407

The data does not meet decryption requirements. Confirm that the data was generated by Security Guard's on-the-fly encryption on this device.

499

Unknown error. Retry the operation.

501

Invalid parameter. Check the input parameters.

502

Out of memory. Retry the operation.

503

Failed to get system properties. Confirm that no software is blocking access to system parameters.

504

Failed to get the key from the image file. Confirm that the format and content of the image file are correct.

505

Failed to get the on-the-fly encryption key. Retry the operation.

506

The data to be decrypted is not decryptable.

507

The data to be decrypted does not match the key. Retry the operation.

508

The value corresponding to the input key does not exist.

599

Unknown error. Retry the operation.

Secure signature API error codes

Error code

Meaning

601

Invalid parameter. Check the input parameters.

602

Out of memory. Retry the operation.

606

When using a TOP sign with a seedkey, the corresponding seedsecret was not found.

607

There is an issue with the yw_1222.jpg image file. This usually occurs because the bundle ID used to generate the image does not match the application's bundle ID.

608

The yw_1222.jpg image file was not found. Ensure that the image file is in the project directory. If the image already exists in the project, verify that the base64Code field in the meta.config file is not empty. If it is empty, manually regenerate the yw_1222.jpg image.

609

The format of the yw_1222.jpg image file is invalid. Regenerate the image file. A common cause is mixing second-party and third-party images. These images are not compatible and must be generated separately.

610

The content of the yw_1222.jpg image file is incorrect. Regenerate the image file.

611

The key specified in the parameter was not found in the image file. Confirm that the key exists in the image file.

615

The current image version is too old. Upgrade to a new version of the image.

699

Unknown error. Retry the operation.