ios 这个 gdb 输出是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7961840/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:08:52  来源:igfitidea点击:

What does this gdb output mean?

iosobjective-caudioios-simulatorplayback

提问by Christopher Hannah

I've got a button that plays a sound, and it seems to work perfectly fine on the simulator, but i'm getting this message:

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

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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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 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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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 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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /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): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security

And i've had reports saying, on some devices it's not playing at all.

我有报告说,在某些设备上它根本无法播放。

回答by Till

That is a confirmed bug of the iOS SDK 5 / Simulator - happens as soon as the simulator tries to play sound (from a movie or any other sound source). Do not worry though, it won't be a problem on the actual device.

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

You mentioned actual reports of users having trouble using your App - those problems are not related / connected to the issue you have posted above.

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

This issue is filed by Apple under Bug ID# 10555404. I did file a report myself which has finally been identified as a dupe of the mentioned bug id.

这个问题是由 Apple 在 Bug ID# 10555404 下提交的。我自己提交了一份报告,最终被确定为上述 Bug id 的欺骗。

The issue currently persists up until and including Xcode Version 4.4.1 (4F1003), iOS SDK 5.1.

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

Update

更新

This issue is finally fixed within Xcode Version 4.5 (4G182), iOS SDK 6.0.

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

Note

笔记

The issue persists even in Xcode Version 4.5 when used in conjunction with the iOS 5.1 (or lower) simulator.

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

回答by Brandon Williams

I found a temporary workaround to this problem: simply turn off breakpoints before playing the video. Then it works fine in the simulator.

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

回答by BigAppleBump

This Problem May occur if you incorrectly import a Mac OSX framework instead of iOs framework. Removing the Mac OS framework worked for me

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

回答by fraktal

Use the AVAudioPlayer as ivar in head file with strong : @property (strong,nonatomic) AVAudioPlayer *audioPlayer For me this works.

在头文件中使用 AVAudioPlayer 作为 ivar 并带有强:@property (strong,nonatomic) AVAudioPlayer *audioPlayer 对我来说这是有效的。

回答by Pungs

The following code can be used to test on simulator.

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

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

回答by stigi

This is a problem many people are having. I didn't find any solution to this yet.

这是很多人都面临的问题。我还没有找到任何解决方案。

I strongly suggest to file a radar. Here's mine http://openradar.appspot.com/radar?id=1466402

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

回答by Wolfgang

What Till says is absolutely right. But when using ARC, this problem might correlate (without a causality) with another problem: If the AVAudioPlayer actually doesn't play any sound, this might be interesting for you: https://stackoverflow.com/a/7744831/838068

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