Today lets take a look at a few issues you might encounter when integrating the Huawei AppGallery Connect APM SDK into your iOS app.
Add apms_debug_log_enabled to the Info.plist file of your app and set Type and Value to Boolean and YES, respectively.
Then, you can filter the debug logs (marked as [APM]), as shown in the following figure.
The APM SDK has been integrated, but I cannot find the APM data in AppGallery Connect.
Official documentation states that the APM SDK requires certain dependencies, especially those of the Analytics SDK version which needs to be version 18.104.22.1680 or later.
You are advised to specify the version of the Analytics SDK.
For example, if the latest version of the Analytics SDK is 22.214.171.1240, you can add pod
'HiAnalytics', '~> 126.96.36.1990' to the Podfile.
When filtering the logs, I can only find the collected and sent logs without those related to sending results.
You can query the hianalytics logs to check whether the following logs exist, especially the result code 200.