本文介紹使用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
文檔內容是否對您有幫助?