Troubleshoot SGError type errors

Updated at:

Problem description

How do I resolve an SGError?

Problem analysis

SGError type errors are usually caused by configuration issues.

The following table lists detailed error codes and their solutions.

Error code

Meaning

103

The Category failed to load because the -ObjC flag was not added.

Follow these steps to add the -ObjC flag:

You can add the -ObjC option in Target->Linking->Other Linker Flags.

For information about modifying compile options, see the following:

Note: The -ObjC flag is case-sensitive.

When using the Alibaba Baichuan version, you may encounter the following issues:

This error is usually caused by an issue with the security image.

Error code

Meaning

607

The image file is invalid. This usually occurs because the bundle ID used to generate the image does not match the application's bundle ID.

608

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

611

The appkey specified in the parameters cannot be found in the image file. This usually occurs because the appkey does not match the image.

The Alibaba Baichuan version is no longer maintained. Upgrade to the latest Alibaba Cloud version. After you update the software development kit (SDK), ensure that you remove the old version of the SDK. If these errors persist, a compile cache may be the cause. Delete the compile cache and run the application again. The new SDK does not require a security image. Use a string AppKey for initialization and delete the old security image.