“无法找到CFBundle / CFPlugIn的可执行文件”错误 [英] "Cannot find executable for CFBundle/CFPlugIn" error

查看:116
本文介绍了“无法找到CFBundle / CFPlugIn的可执行文件”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


无法找到CFBundle / CFPlugIn的可执行文件0x432bfa0(未加载)

找不到CFBundle / CFPlugIn中的工厂C5A4CE5B-0BB8-11D8-9D75-0003939615B6的函数指针NewPlugIn 0x432bfa0 (未加载)

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)

这是我尝试运行此代码时出现的错误:

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..

编辑:新的奇怪消息:


AddRunningClient在非零客户端计数上启动设备

AddRunningClient starting device on non-zero client count

播放MP3时。

推荐答案

因为它接缝问题不在代码中,可能有多种原因对于你的问题,所以:

As it seams that the problem isn't in the code, there may multiple causes for your problem, so:


  1. 我建议你创建一个简单的项目,在其中放入最简单的音频文件或运行其中一个苹果的示例项目,如节拍器 avTouch

尝试通过写入终端来卸载XCode:

Try to uninstall XCode by writing in Terminal:

sudo /Developer/Library/uninstall-devtools --mode=all

并重新安装XCode,因为有时在XCode的安装过程中会出现一些问题(我也有一些错误,但是在干净安装后它们消失了。)

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).

尝试使用 MPMoviePlayerController

尝试在iPhone上运行。

Try to run on the iPhone.

iPhone SDK 4.0 Beta上的mpmoviePlayercontroller也会出现非零客户端计数的AddRunningClient启动设备消息,因此您不必过于担心它。

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.

希望我的回答可以帮到你!

Hope my answer helps you!

这篇关于“无法找到CFBundle / CFPlugIn的可执行文件”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆