Integration with RTC SDK for iOS

更新时间:
复制 MD 格式

This topic describes how to troubleshoot common issues related to integration with Real-Time Communication (RTC) SDK for iOS.

An x86 or i386 error occurs during code compilation

  • Problem description: The error shown in the following figure is reported when you compile your code.Compilation error
  • Possible cause: A simulator is used to debug and run the code.
  • Solution: Use a real device to debug and run the code.

A bitcode error occurs during code compilation

  • Problem description: The error shown in the following figure is reported when you compile your code.bitcode error
  • Possible cause: The SDK does not support the bitcode feature.
  • Solution: Disable bitcode in build options. Resolve a bitcode error

An "image not found" error occurs during code compilation

  • Problem description: The error shown in the following figure is reported when you compile your code.image not found
  • Possible cause: The SDK of the V1.6 or an earlier version is statically loaded. The SDK of the V1.7 or a later version is dynamically loaded.
  • Solution: Load AliRTCSdk.framework as an embedded library. Switch to dynamic libraries

An app fails to run due to insufficient permissions

  • Problem description: The error shown in the following figure is reported when you run your app.iOS SDK
  • Possible cause: The app does have the permissions on the modules to be used.
  • Solution: Edit the info.plist file to apply for the permissions on modules such as the camera and microphone. For more information, see Integrate RTC SDK for iOS. iOS SDK

Failed to call a UIDevice method

  • Problem description: The error shown in the following figure is reported when you run your app.iOS SDK
  • Solution: Add -Objc to linking options. Add the -Objc linking option

Voice stuttering occurs if network conditions deteriorate

  • Problem description: In the online KTV scenario, voice stuttering occurs if the network conditions deteriorate.
  • Possible cause: To ensure the timeliness of the chorus, the client adopts a low latency policy. As a result, the packet loss rate increases if the network conditions deteriorate.

Echoes are heard in the sound played by speakers if the in-ear monitoring mode is enabled

  • Problem description: In the online KTV scenario, echoes are heard in the sound played by speakers if the in-ear monitoring mode is enabled.
  • Solution: You must put on earphones when you sing. Do not play the sound by using speakers.