2012-03-24 84 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 2012-03-24 06:23:11

+0

啊......我明白了。感谢您的帮助。 这并不重要,这是件好事。 – ssongahlee 2012-03-24 22:24:15

回答

5

这是iOS SDK 5/Simulator的确认错误 - 只要模拟器尝试播放声音(从电影或任何其他声源)就会发生。不要担心,但实际设备上不会有问题。

您提到了用户在使用您的应用时遇到问题的实际报告 - 这些问题与您上面发布的问题没有关联/关联。

此问题由Apple根据Bug ID#10555404提交。我自己提交了一份报告,最终被识别为所提到的bug ID的一个重复。

该问题目前一直存在,直到包括Xcode版本4.3.2(4E2002),iOS SDK 5.1。

可能会出现此问题如果您错误地导入Mac OSX框架而不是iOs框架。删除Mac OS框架适用于我。

记得设置委托(self.player.delegate =个体经营),并使用委托的方法进行清理:

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

here

+2

这是模拟器的SDK错误。如果禁用异常断点或继续执行它们,那么它实际上都可以正常工作。一切工作正常在设备上。 – akk 2012-03-24 10:01:01

+0

哦!非常感谢!!好的。我将检查我导入的框架。 我将设置代表。 非常感谢! :D – ssongahlee 2012-03-24 22:34:24

+0

当我在模拟器上测试我的场景时,视频和声音在几秒钟后消失。在设备上,我得到了同样的越野车结果...(使用最新的Xcode版本4.3.2进行测试) – geforce 2012-03-27 13:43:08