【问题标题】:What does this gdb output mean?这个 gdb 输出是什么意思?
【发布时间】:2011-12-19 04:43:12
【问题描述】:

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

加载/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.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 万圣节 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 万圣节 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 万圣节 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 万圣节 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 万圣节 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

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

【问题讨论】:

标签: objective-c ios-simulator


【解决方案1】:

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

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

这个问题是由 Apple 在 Bug 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 中问题仍然存在。

【讨论】:

  • 仍然看到 LLDB 的这个问题,但烦人的延迟已经消失。
  • 看起来这是由模拟器上的 AVFoundation 中引发的内部异常引起的。正如 Brandon Williams 的回答所建议的那样,禁用“All Exceptions”断点会阻止调试器中断并播放声音。 (或者强制调试器反复继续,声音最终会播放。)
  • 我仍然在 Xcode 4.5 和 iOS 6 Simulator + iOS SDK 6.0 中看到这个问题,无论我尝试解决什么变通办法或建议。嗯...
【解决方案2】:

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

【讨论】:

    【解决方案3】:

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

    【讨论】:

      【解决方案4】:

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

      【讨论】:

        【解决方案5】:

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

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

        【讨论】:

          【解决方案6】:

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

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

          【讨论】:

          • 不要担心 Apple 会沉默。我仍然收到有关错误的反馈。但是这个太明显了。他们至少应该找出重复项:(
          【解决方案7】:

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

          【讨论】:

            猜你喜欢
            • 2013-02-26
            • 2020-11-09
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2011-03-06
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多