本文介紹使用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