2012-03-24 19 views
3

MPMoviePlayerを使用して単純なムービーを再生しようとしていますが、コンソールでこのエラーが発生し続けます(ムービーが再生されます)。 xcodeのバージョンは4.3.1です。MPMoviePlayerの読み込み中にエラーが発生しました

2012-03-24 14:51:49.488 european_culture[450:17a07] 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: /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-03-24 14:51:49.496 european_culture[450:17a07] 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: /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-03-24 14:51:49.584 european_culture[450:17a07] 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-03-24 14:51:49.592 european_culture[450:17a07] 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-03-24 14:51:49.610 european_culture[450:17a07] 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-03-24 14:51:49.617 european_culture[450:17a07] 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-03-24 14:51:51.749 european_culture[450:13a03] Unbalanced calls to begin/end appearance transitions for <MPMoviePlayerViewController: 0x935f500>. 
2012-03-24 14:51:51.930 european_culture[450:15303] AQMixerDevice::SetMixerChannelLayout(0x7d47f50): scope 1, element 1, layout: tag=0x640001: error -10851 

しかし、私は私のiPad(5.1)上でそれをテストし、メッセージが異なっていた。(映画があまりにも、再生されます。)

Unbalanced calls to begin/end appearance transitions for <MPMoviePlayerViewController: 0xf6a0c40>. 

問題は何?

-(void)playMovie:(NSString *)fileName 
{ 
NSString *movieFile = [[NSBundle mainBundle] pathForResource:fileName ofType:@"mov"]; 
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:movieFile]; 
MPMoviePlayerViewController *tempMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL]; 
MPMoviePlayerController *moviePlayer = [tempMoviePlayer moviePlayer]; 

[tempMoviePlayer.view setFrame:CGRectMake(0, 0, 1024, 768)]; 
[_zoomImageView addSubview: tempMoviePlayer.view]; 
[self presentMoviePlayerViewControllerAnimated:tempMoviePlayer]; 
[self setWantsFullScreenLayout:YES]; 
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playMovieFinished:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayer]; 
[moviePlayer play]; 

[fileURL release]; 
[tempMoviePlayer release]; 
} 

plzは、私を助け: はここに私のボタンが押されたときに、ムービーを再生しなければならない私のコードです。
ありがとうございます。

+1

からXcode 4.2から4.3に最近更新され、 "古い"プロジェクトを使用しています。結果として、パスは間違っています。フレームワークはとにかくそこにあるので、実際には重要ではありません。 – Matthias

+0

ああ...そうだ。ご協力ありがとうございました。 それは問題ではないことが良いことです。 – ssongahlee

答えて

5

これはiOS SDK 5/Simulatorの確認済みのバグです。シミュレータが(映画や他の音源から)サウンドを再生しようとするとすぐに発生します。しかし、心配しないでください、それは実際のデバイス上で問題になることはありません。

あなたのアプリケーションを使用する際に問題が発生したユーザーの実際の報告 - これらの問題は上記の問題に関連していない/接続されていません。

この問題は、AppleによってBug ID#10555404で提出されました。私は最終的に、上記のバグIDの詐欺として識別されたレポートを自分で提出しました。

問題は現在、Xcodeバージョン4.3.2(4E2002)、iOS SDK 5.1までサポートされています。

この問題は、iOsフレームワークではなくMac OSXフレームワークを間違ってインポートした場合に発生することがあります。 Mac OSのフレームワークを削除すると私にとってはうまくいった。

デリゲート(self.player.delegate =自己)を設定し、クリーンアップするデリゲートのメソッドを使用してください:あなたが持っている、私は推測する:最初の部分のみに関する

-(void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)playedSuccessfully 
{ 
     self.player = nil; 
} 

here

+2

これはSimulatorのSDKバグです。例外ブレークポイントを無効にするか、そのまま続けると、実際にはすべて正常に動作します。すべてがデバイス上で正常に動作します。 – akk

+0

ああ!どうもありがとうございます!! OK。どのフレームワークをインポートしたかを確認します。 私はデリゲートを設定します。 ありがとう! :D – ssongahlee

+0

私はシミュレータで私のシーンをテストしているとき、ビデオとサウンドは数秒後に消えます。デバイス上で同じバグの結果が出る...(最新のXcodeバージョン4.3.2でテスト済み) – geforce

関連する問題