objective-c - 单击按钮以使用Xcode播放声音时调试器中的错误

标签 objective-c ios debugging audio

当我运行应用程序并单击将声音链接到的按钮之一时,我在调试器中收到这组消息。我的代码中没有可见的错误。请帮忙,因为我不知道如何解决。首次单击该按钮时,需要一段时间才能使用react。然后,就可以了。

2012-08-30 11:48:46.738 Jeffrey![3321:c07] Has ad showing
2012-08-30 11:48:49.831 Jeffrey![3321:3403] 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: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-08-30 11:48:49.837 Jeffrey![3321:3403] 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: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-08-30 11:48:49.849 Jeffrey![3321:3403] 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: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-08-30 11:48:49.856 Jeffrey![3321:3403] 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: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-08-30 11:48:52.588 Jeffrey![3321:c07] Has ad showing

最佳答案

这是iOS模拟器的正常行为,不应在实际设备上发生。延迟来自模拟器/设备加载声音文件并在播放文件之前对其进行解码,对此的解决方案是预加载声音,以便在轻按按钮时可以准备好声音。

关于objective-c - 单击按钮以使用Xcode播放声音时调试器中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12195261/

相关文章:

ios - 是否可以将具有重复键的值添加到 NSDictionary?

ios - Xcode 中的 "Frame Rectangle"与 "Layout Rectangle"

ios - 音频无法在适用于 iOS 的 Corona SDK 上运行

visual-studio - 显示可视化工具错误 "could not load this custom viewer"

ios - 将 Objective-C block 转换为 Swift

iphone - 如何将 xcode 4.1 iPhone 应用程序转换为通用应用程序

ios - SKShapeNode中的位置笔划

iphone - 如何关闭定位服务?

javascript - 为什么这是 IE11 和 Pale Moon 中的错误?

VBA HTML 抓取错误 "Object Variable or With Variable not set"