MPMoviePlayer Error Download File

I am trying to use MPMoviePlayer to play a simple movie and I keep getting this error in the console (but the movie is playing): My xcode version is 4.3.1.

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

      

But I tested it on my iPad (5.1) and the post was different. (The film is also being played.)

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

      

What's the problem? Here is my code that should play the movie when my button is pressed:

-(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 help me.
Many thanks.

+3


source to share


1 answer


This is a confirmed iOS SDK 5 / Simulator bug - occurs as soon as the simulator tries to play audio (from a movie or any other audio source). Don't worry, this won't be a problem on the device itself.

You mentioned actual reports of user issues with your application - these issues are not / related to the issue you posted above.

This issue is filed by Apple under bug ID # 10555404. I made my own report myself, which was finally identified as cheating on the mentioned bug ID.

Currently the problem persists until Xcode version 4.3.2 (4E2002), iOS SDK 5.1.



It is possible that this issue can occur if you import Mac OSX infrastructure incorrectly instead of iOs infrastructure. Removing the Mac OS environment worked for me.

Don't forget to set the delegate (self.player.delegate = self) and use the delegate methods to clean up:

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

      

From here

+5


source







All Articles