Troubleshoot iOS SDK integration errors

Updated at:

Common content:

  • CocoaPods error: "Unable to find a specification for AlicloudFeedback".

  • UTDID conflicts with other Alibaba Baichuan packages.

  • User feedback: The "Failed to retrieve configuration" error is displayed on the main interface.

Example 1: CocoaPods error: "Unable to find a specification for AlicloudFeedback".

  • For more information, see Integrate the iOS SDK.

  • Confirm that the CocoaPods Podfile is configured as described in Integrate the iOS SDK. Ensure that you correctly enter commands, such as pod install.

  • If CocoaPods reports the Unable to find a specification for AlicloudFeedback error, clear the CocoaPods cache and the repository cache. Ensure that you use the latest version of CocoaPods and have an updated repository. This integration has been tested successfully with CocoaPods version 1.2.1.

  • Because the Mobile Feedback iOS SDK uses a private repository, the method for clearing the cache is slightly different:

    To clear the private CocoaPods repository cache:

    pod repo remove aliyun

    or

    cd /Users/[YourMacName]/.cocoapods/repos/

    In this directory, find the private repository named aliyun and delete it.

    Then, execute the following:

    pod repo update

    Execute again

    pod search [PodName]

    Verify that the pod can be found, and then run the following command:

    pod install

    If the error persists, run the following command to display more detailed error information:

    pod install --verbose

    Post the detailed error message in DingTalk group 35248489.

Example 2: UTDID conflicts with other Alibaba Baichuan packages.

  • If this issue occurs, check whether your project contains other Baichuan or Alipay-related SDKs.

  • If it does, first manually integrate the Mobile Feedback SDK. Then, delete one of the two UTDIDs to resolve the conflict.

Example 3: User feedback: The main interface displays a "Failed to get configuration" error.

  • Verify that the AppKey and AppSecret entered during SDK integration match the information in the console.

Note

If the issue persists, join DingTalk group 35248489 for assistance.