Ios 苹果';s LoadPresetDemo不工作

Ios 苹果';s LoadPresetDemo不工作,ios,xcode,midi,Ios,Xcode,Midi,当我运行苹果的LoadPresetDemosample时,它应该会播放通过点击按钮发出的midi信号发出的声音,示例代码停止工作,我不知道该怎么办 我得到的唯一线索是这个输出 2013-01-28 03:41:52.842 Load Presets[586:10703] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/Mac

当我运行苹果的
LoadPresetDemo
sample时,它应该会播放通过点击按钮发出的midi信号发出的声音,示例代码停止工作,我不知道该怎么办

我得到的唯一线索是这个输出

2013-01-28 03:41:52.842 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:52.848 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:52.886 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:52.892 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:52.931 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:53.051 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:53.061 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:53.066 Load Presets[586: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: /Users/tj/Documents/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
2013-01-28 03:41:53.081 Load Presets[586:10703] *** Assertion failure in -[MainViewController configureAndStartAudioProcessingGraph:], /Users/tj/Developer/LoadPresetDemo/LoadPresetDemo/Classes/MainViewController.m:169
2013-01-28 03:41:53.113 Load Presets[586:10703] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'AudioUnitSetProperty (set Sampler unit output stream sample rate). Error code: -10865 'è’ˇˇ''
*** First throw call stack:
(0x1891022 0x133bcd6 0x1839a48 0xe352cb 0x3052 0x50a3 0x1fda 0x49c386 0x49d274 0x4ac183 0x4acc38 0x4a0634 0x2e4def5 0x1865195 0x17c9ff2 0x17c88da 0x17c7d84 0x17c7c9b 0x49cc65 0x49e626 0x1f0c 0x1e75)
terminate called throwing an exception(lldb) 
我知道我需要先读一本初学者的书,但有时也有机会。我得做些我不知道的事。 我所需要的就是正确构建并运行示例代码


你能告诉我怎么办吗?或者我可以查看其他日志窗口吗?与android一样,它也有输出和日志。

您可能需要包括安全框架。参考Xcode帮助应该很容易做到

您可能需要包括安全框架。参考Xcode帮助应该很容易做到

多谢各位。我现在知道我不知道的了。你指的是通常已知的未知还是以前未知的未知?非常常见的事情,如何在项目中添加框架。另外,添加安全框架并没有在最后几行删除NSInternalInconsistencyException。我无法在xCode模拟器上运行它,但它可以在我的iPad上运行。我不知道为什么,谢谢你。我现在知道我不知道的了。你指的是通常已知的未知还是以前未知的未知?非常常见的事情,如何在项目中添加框架。另外,添加安全框架并没有在最后几行删除NSInternalInconsistencyException。我无法在xCode模拟器上运行它,但它可以在我的iPad上运行。我不知道为什么。