objective-c - 如何隐藏 AVFoundation 调试日志?

标签 objective-c xcode xcode6 avfoundation avplayer

OS X 10.10 和 XCode 6.1.1。

可能我在项目设置中搞砸了一些东西,因为现在与 AVFoundation.framework 相关的不必要日志出现在控制台中。在 AVPlayer 中初始化、设置和播放音乐时出现第一个 block 。

[01:08:32.915] FigLimitedDiskCacheProvider_CopyProperty signalled err=-12784 (kFigBaseObjectError_PropertyNotFound) (no such property) at /SourceCache/CoreMedia/CoreMedia-1562.19/Prototypes/FigByteStreamPrototypes/FigLimitedDiskCacheProvider.c line 947
Jan 14 01:08:32 MacBook-Air-Roman.local rtcreporting[6668] <Info>: logging starts...
Jan 14 01:08:32 MacBook-Air-Roman.local rtcreporting[6668] <Debug>: setMessageLoggingBlock: called<
Jan 14 01:08:32 MacBook-Air-Roman.local rtcreporting[6668] <Debug>: startConfigurationWithCompletionHandler: Cached 0 enabled backends
Jan 14 01:08:32 MacBook-Air-Roman.local rtcreporting[6668] <Debug>: setUserInfoDict: enabled backends: ( )

这些日志在我暂停或播放时出现。

Jan 14 01:08:35 MacBook-Air-Roman.local rtcreporting[6668] <Debug>: sendMessageWithCategory: (null)
Jan 14 01:08:35 MacBook-Air-Roman.local rtcreporting[6668] <Debug>: sendMessageWithCategory: (null)

还有很多我不需要的其他通知,因为所有这些错误都不严重,而且我以前从未见过它们。我不明白 - 如何禁用此调试日志?这是什么?

最佳答案

不幸的是,你不能隐藏它们,如果你正在分析日志,最好的办法是将它们粘贴到笔记中,并在分析它们之前手动清除垃圾。

关于objective-c - 如何隐藏 AVFoundation 调试日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27932836/

相关文章:

ios - 根据其 super View 框架更改 subview

iphone - 无法识别的选择器发送到 OAuthCore 类中的类

xcode - MacOSX 下 libpng 的链接器错误

iphone - 将CGPath转换为UIImage

ios - 使用 tesseract 识别车牌

swift - 如何在 SwipeCellKit 中实现左右滑动

xcode - 阻止我的 OS X 应用程序要求用户安装 "XCode Command Line Developer Tools"

swift - 在 Swift Bridging Header 中获取 "file not found"错误

ios - Cocos2d - 更改为背景图像

iOS 8 游戏中心错误