xcode “找不到 CFBundle/CFPlugIn 的可执行文件”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2345263/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Cannot find executable for CFBundle/CFPlugIn" error
提问by Emil
Cannot find executable for CFBundle/CFPlugIn 0x432bfa0 (not loaded)
Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x432bfa0 (not loaded)
找不到 CFBundle/CFPlugIn 0x432bfa0 的可执行文件(未加载)在 CFBundle/CFPlugIn 0x432bfa0(未加载)中
找不到工厂 C5A4CE5B-0BB8-11D8-9D75-0003939615B6 的函数指针 NewPlugIn
That's the error I get when I try to run this code:
这是我尝试运行此代码时遇到的错误:
NSString *path = [[NSBundle mainBundle] pathForResource:[arraySubFarts objectAtIndex:indexPath.row] ofType:@"mp3"];
NSURL *file = [[NSURL alloc] initFileURLWithPath:path];
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:file error:nil];
self.player = player;
[player prepareToPlay];
[player setDelegate:self];
[self.player play];
Have you got any idea why this is happening?
你知道为什么会这样吗?
I have included the needed frameworks, and the code works great, the only thing is this odd Console-message..
我已经包含了所需的框架,并且代码运行良好,唯一的问题是这个奇怪的控制台消息..
EDIT: New odd messages:
编辑:新的奇怪消息:
AddRunningClient starting device on non-zero client count
AddRunningClient 在非零客户端计数上启动设备
when playing an MP3.
播放 MP3 时。
采纳答案by mxg
As it seams that the problem isn't in the code, there may multiple causes for your problem, so:
由于看起来问题不在代码中,因此您的问题可能有多种原因,因此:
I recommend you create a simple project in which you put the simplest audio file or run one of the apple's sample project, like Metronomeor avTouch
Try to uninstall XCode by writing in Terminal:
sudo /Developer/Library/uninstall-devtools --mode=all
and re-install XCode because sometimes there appear some problems in the instalation process of the XCode(I had some errors too, but they dissapeared after a clean install).
Try to play the same file with MPMoviePlayerController
Try to run on the iPhone.
尝试通过在终端中写入来卸载 XCode:
sudo /Developer/Library/uninstall-devtools --mode=all
并重新安装XCode,因为有时在XCode的安装过程中会出现一些问题(我也有一些错误,但在干净安装后它们消失了)。
尝试使用MPMoviePlayerController播放相同的文件
尝试在 iPhone 上运行。
The message "AddRunningClient starting device on non-zero client count" also appears for mpmoviePlayercontroller on iPhone SDK 4.0 Beta, so you don't have to worry too much about it.
mpmoviePlayercontroller 在 iPhone SDK 4.0 Beta 上也会出现“AddRunningClient startup device on non zero client count”的提示,不用太担心。
Hope my answer helps you!
希望我的回答能帮到你!
回答by WineSoaked
There is a fairly old threadover at Apple support that might have some sage advice.
Apple 支持中有一个相当古老的线程,可能有一些明智的建议。
The suggestion is to try running Disk Utility on your system, clicking "Repair Disk Permissions". The symptom may be that, for whatever reason, the DVCPROHDAudio.plugin file has lost its execute mode or has had its owner id changed.
建议是尝试在您的系统上运行磁盘工具,单击“修复磁盘权限”。症状可能是,无论出于何种原因,DVCPROHDAudio.plugin 文件已丢失其执行模式或其所有者 ID 已更改。
回答by swhitman
Make clean did the trick for me...
Make clean 对我有用...
回答by Rick Brown
try deleting or renaming the plugin file to something like ...plugin.old and re-run your code to see if you get the error still.
尝试删除插件文件或将插件文件重命名为 ...plugin.old 之类的内容,然后重新运行您的代码以查看是否仍然出现错误。
回答by Paul Brady
Or just Reboot your machine. Oddly, this worked for me as it seemed to only be happening when I connected to my local WiFi.
或者只是重新启动您的机器。奇怪的是,这对我有用,因为它似乎只有在我连接到本地 WiFi 时才会发生。
Yes, weird. But it worked.
是的,很奇怪。但它奏效了。