2012-03-24 12 views
3

Ich versuche, den MPMoviePlayer zu verwenden, um einen einfachen Film zu spielen, und ich bekomme diesen Fehler in der Konsole (aber der Film wird abgespielt): Meine xcode Version ist 4.3.1.MPMoviePlayer Fehler beim Laden der Datei

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 

Aber ich getestet es auf meinem iPad (5.1) und die Nachricht war anders. (Der Film abgespielt wird, auch.)

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

Was ist das Problem? Hier ist mein Code, der einen Film spielen, wenn meine Taste gedrückt wird:

-(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, mir zu helfen.
vielen Dank.

+1

nur in Bezug auf den ersten Teil: Ich denke, Sie haben kürzlich von Xcode 4.2 auf 4.3 aktualisiert, und Sie verwenden ein "altes" Projekt. Dadurch sind die Pfade nicht korrekt, was nicht wirklich zählt, da die Frameworks sowieso vorhanden sind. – Matthias

+0

ah ... ich verstehe. Danke für Ihre Hilfe. Es ist eine gute Sache, es spielt keine Rolle. – ssongahlee

Antwort

5

Dies ist ein bestätigter Fehler des iOS SDK 5/Simulator - passiert, sobald der Simulator versucht, Ton wiederzugeben (aus einem Film oder einer anderen Tonquelle). Mach dir keine Sorgen, es wird kein Problem auf dem Gerät sein.

Sie haben tatsächliche Berichte von Benutzern erwähnt, die Probleme bei der Verwendung Ihrer App hatten. Diese Probleme stehen nicht in Zusammenhang mit dem oben beschriebenen Problem.

Diese Ausgabe wurde von Apple unter Bug ID # 10555404 abgelegt. Ich habe selbst einen Bericht erstellt, der endlich als ein Betrüger der genannten Bug-ID identifiziert wurde.

Das Problem besteht derzeit bis einschließlich Xcode Version 4.3.2 (4E2002), iOS SDK 5.1.

möglicherweise Dieses Problem kann auftreten, wenn Sie ein Mac OSX-Framework anstelle von iOS-Framework falsch importieren. Das Entfernen des Mac OS Frameworks funktionierte für mich.

Denken Sie daran, den Delegaten (self.player.delegate = self) zu setzen und die Delegierten Methoden verwenden, um aufzuräumen:

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

Von here

+2

Es ist ein SDK-Bug mit dem Simulator. Wenn Sie Ausnahme-Breakpoints deaktivieren oder einfach weitergehen, funktioniert alles OK. Alles funktioniert gut auf dem Gerät. – akk

+0

Oh !! ich danke dir sehr!! OK. Ich überprüfe, welchen Rahmen ich importiert habe. Und ich werde den Delegierten einstellen. vielen Dank !! : D – ssongahlee

+0

Wenn ich meine Szene im Simulator teste, verschwinden Video und Ton nach ein paar Sekunden. Auf dem Gerät bekomme ich das gleiche Buggy-Ergebnis ... (Getestet mit der neuesten Xcode-Version 4.3.2) – geforce