这个gdb输出是什么意思?

我有一个播放声音的button,它似乎在模拟器上工作得很好,但我得到这个消息:

加载/系统/资料库/扩展/audio/ IP /驱动程MacOS / AudioIPCPlugIn,262):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.605 Halloween FX [33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.657万圣节外汇[33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.671 Halloween FX [33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.706万圣节外汇[33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.715 Halloween FX [33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.732 Halloween FX [33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security
 2011-11-01 02:13:02.741 Halloween FX [33484:10703] Error loading /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):未find符号:___CFObjCIsCollectable
  参考:/System/Library/Frameworks/Security.framework/Versions/A/Security
  预计在:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
  in /System/Library/Frameworks/Security.framework/Versions/A/Security

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

这是iOS SDK 5 / Simulator的一个确认错误 – 只要模拟器尝试播放声音(从电影或任何其他声源)就会发生。 不要担心,但实际设备上不会有问题。

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

这个问题是由苹果根据Bug ID#10555404提交的。我自己提交了一个报告,最终被认定为上述bug的编号。

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

更新

这个问题最终在Xcode版本4.5(4G182),iOS SDK 6.0中得到修复。

注意

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

我发现了一个暂时的解决方法来解决这个问题:只需在播放video之前closures断点即可。 然后它在模拟器中正常工作。

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

在头文件中使用AVAudioPlayer强:@property(强,非primefaces)AVAudioPlayer * audioPlayer对于我来说这个工作。

下面的代码可以用来在模拟器上testing。

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

这是很多人遇到的问题。 我还没有find任何解决scheme。

我强烈build议提交一个雷达。 这是我的http://openradar.appspot.com/radar?id=1466402

蒂尔说的是绝对正确的。 但是,当使用ARC时,这个问题可能会与另一个问题相关(如果没有因果关系):如果AVAudioPlayer实际上不能播放任何声音,那么这可能对你很有趣: https : //stackoverflow.com/a/7744831/838068

Interesting Posts