这个gdb输出是什么意思?


120

我有一个可以播放声音的按钮,它在模拟器上似乎工作得很好,但是我收到以下消息:

加载/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn:dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIns.bundle/Content时出错MacOS / AudioIPCPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.605万圣节FX [33484:10703]加载/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn:dlopen(/ System / Library /Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.657 Halloween FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.671万圣节FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.706 Halloween FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.715 Halloween FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.732 Halloween FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中
2011-11-01 02:13:02.741 Halloween FX [33484:10703]加载/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn,262):找不到符号:___CFObjCIsCollectable
  引用自:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预期位于:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 在/System/Library/Frameworks/Security.framework/Versions/A/Security中

我有报道说,在某些设备上,它根本没有播放。


只是想补充一下,我在使用ARC的iOS项目中播放HLS视频流时也遇到了同样的问题。
James J

Answers:


203

这是iOS SDK 5 / Simulator的一个已确认错误-在模拟器尝试播放声音(来自电影或任何其他声音源)后立即发生。不过请放心,这在实际设备上不会有问题。

您提到了用户使用应用程序时遇到的实际报告-这些问题与您上面发布的问题无关/无关。

此问题由Apple提交,错误ID为10555404。我确实自己提交了一份报告,该报告最终被确定为所提及错误ID的重复。

该问题目前一直持续到Xcode版本4.4.1(4F1003),iOS SDK 5.1包括在内。

更新资料

Xcode版本4.5(4G182),iOS SDK 6.0中终于解决了此问题。

注意

与iOS 5.1(或更低版本)模拟器一起使用时,即使在Xcode版本4.5中,该问题仍然存在。


1
LLDB仍然看到此问题,但烦人的延迟已消失。
斯蒂吉2012年

13
看起来这是由模拟器内的AVFoundation中引发的内部异常引起的。如布兰登·威廉姆斯的回答所建议的那样,禁用“所有异常”断点将停止调试器的中断,并且声音会播放。(或者强制调试器重复不断,声音最终会播放。)
克里斯·迈尔斯

2
我仍然在Xcode 4.5和iOS 6 Simulator + iOS SDK 6.0中仍然看到此问题,无论我尝试采用哪种解决方法或建议。嗯...
Joe D'Andrea 2012年

16

我找到了解决此问题的临时方法:只需在播放视频之前关闭断点即可。然后在模拟器中可以正常工作。


4

如果您错误地导入了Mac OSX框架而不是iOs框架,则可能会出现此问题。删除Mac OS框架对我有用


4

在头文件中将AVAudioPlayer用作具有坚强特性的ivar:@property(强,非原子)AVAudioPlayer * audioPlayer对我来说,这有效


4

以下代码可用于在模拟器上进行测试。

if (beep == nil)
    NSLog(@"audio player not initialized");             
else if(TARGET_IPHONE_SIMULATOR) 
{
    NSLog(@"beep play"); 
} 
else
{
    [beep play];  
}


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.