2012-01-13 6 views
1

ボタンにリンクされたサウンドを再生しようとしていますが、次のエラーコードが表示されます。どうすればこの問題を解決できますか?Xcode iphoneシミュレータでサウンドを再生できない

2012-01-13 07:22:58.887 M3NYFAC3Z [5875:1e03]読み込みエラー /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn。 のdlopen(262 /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn、 ):見つからないシンボル:_CFXMLNodeGetInfoPtrから参照: /システム/ライブラリ/フレームワーク/セキュリティ。フレームワーク/バージョン/ A /セキュリティ
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation/システム/ライブラリ/Frameworks/Security.framework/Versions/A/Securityの 2012-01-13 07:22:58.892 M3NYFAC3Z [5875:1e03] /Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn、 ):シンボルが見つかりません:_CFXMLNodeGetInfoPtr /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks:に期待 /System/Library/Frameworks/Security.framework/Versions/A/Security
:から参照/CoreFoundation.framework/CoreFoundation in/System/Library/Frameセキュリティ/フレームワーク/バージョン/ A /セキュリティ 2012-01-13 07:25:28.994 M3NYFAC3Z [5875:1e03] AQMEIO_Base :: DoStartIO: タイムアウト2012-01-13 07:25:29.271 M3NYFAC3Z [5875:1e03 ] AQMEDevice(0x8831a00):: StartIO:エラー-66681 2012-01-13 07:25:29.272 M3NYFAC3Z [5875:1e03] CA_UISoundClientBase :: StartPlaying: AddRunningClientが失敗しました(ステータス= -66681)。

sharedlibrary適用負荷-ルール[5875 スレッド0x207を処理するための切り替え]すべては、これは私のコードです:

-(IBAction)playobey:(id)sender { 
    NSString *path = [[NSBundle mainBundle] pathForResource:@"renegadeyamaha" ofType:@"wav"]; 
    AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; 
    [audioPlayer play]; 
} 
+0

を。 – DGund

+0

この問題(類似しているが同一ではない)とよく似ています。http://stackoverflow.com/questions/7961840/what-does-this-gdb-output-mean/83​​17546#8317546 コードを投稿すると、実際に私たちを啓発するかもしれません。 – Till

+0

@ M3NYFAC3Zあなたはデバイスを試しましたか?それは同じように振る舞いますか? – Till

答えて

3

あなたはどこかIVAR /プロパティであなたのAVAudioPlayerへの参照を保持する必要があります。それはおそらく作成され、あなたのサウンドを再生するチャンスがある直前にリリースされます。

私はあなたの人生を容易にするかもしれない少しAVAudioPlayerベースのサウンドプレイヤークラス書きました:のサウンドを再生するためのコードを見てみましょう

https://github.com/nicklockwood/SoundManager

関連する問題