Skip to main content
Since 3.2.0, error codes have been renumbered according to the cross-platform unified table as “iOS prefix 103 + low 3 digits”. Enum names are kept but their values changed, so you must recompile with the new headers. The “3.1.2 and earlier” column below lists the old values; for details, see the Changelog.

Error code rules

  • 0: success
  • 103000–103999: SDK local errors. Full code = 103 + the low 3 digits of the unified table, e.g. 103006 = 103 + 006 (connection failed). The low 3 digits mean the same as on other platforms
  • 1000–99999: backend business codes, passed through by the SDK as is without a prefix. For their meanings, see Server API error codes
The errCode of engineChannel:onDisconnected:errCode:errMsg: and onImDisconnected:errCode:errMsg: follows the same rules. When an API that only returns an error code hits a backend business code, read RTCEngineKit.lastServerErrorMessage immediately to get the server-side message (since 3.2.1; language follows RTCEngineKit.language). Branch on the error code, not on the error message: errMsg comes from the backend and is for logging only.

RTCEngineError

Error codes
In 3.1.2 and earlier, missing camera / microphone permission always returned RTCEngineErrorDeviceNoAuthorized, and the four virtual background failures returned RTCEngineErrorConflict / RTCEngineErrorNotFound / RTCEngineErrorSystemError. When upgrading from those versions, besides recompiling, change the corresponding branches to the new enums according to the table above.