OS X 10.10和XCode 6.1.1.
可能我在项目设置中弄乱了一些东西,因为现在控制台中出现了与AVFoundation.framework相关的不必要的日志.在AVPlayer中初始化,设置和播放音乐时会出现第一个块.
[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)
解决方法
不幸的是你无法隐藏它们,如果你正在分析日志,最好的办法是将它们粘贴到笔记中,然后在分析它们之前用手去掉垃圾.