本文介绍了在iOS应用中检测到Chromecast设备后记录了未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Google在chromecast sender API上发布在github上的测试应用程序iOS(CastVideos-ios),它运行良好,但有时GCKLoggerDelegate的logFromFunction方法会向我发送错误消息,并丢失找到的chromecasts,而没有解释.
I'm using test app iOS (CastVideos-ios) that google posted on github with chromecast sender API, it's working well, but sometimes the logFromFunction method of GCKLoggerDelegate send me an error and loses the chromecasts that was found, without an explanation.
这是错误:
功能
-[GCKDeviceScanner netService:didNotResolve:]
消息
Failed to resolve net service <NSNetService 0x1fd495b0> local. _googlecast._tcp. ChromecastStash with error dictionary {
NSNetServicesErrorCode = "-72007";
NSNetServicesErrorDomain = 10;
}
推荐答案
这是iOS提供的NSNetService的标准行为.我们只是记录错误.请参阅此中的解决失败时"部分.链接
This is a standard behavior of NSNetService provided by iOS. We just log the error. See the section on "When Resolving Fails" in this link
这篇关于在iOS应用中检测到Chromecast设备后记录了未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!