全部产品
Search
文档中心

对象存储 OSS:iOS常见问题

更新时间:Dec 20, 2023

本文介绍使用OSS iOS SDK的常见问题及解决方法。

调用iOS SDK相关接口打印报错4099,怎么办?

问题现象

[Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 91 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 91 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}

问题原因

iOS系统开发模拟器配置问题。

解决方法

通过以下两种方式关闭接收消息日志动态并在系统级别设置“com.apple.CoreTelephony”子系统级别。

  • 方式一

    xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
  • 方式二

    sudo log config --mode "level:off" --subsystem com.apple.CoreTelephony