gpt4 book ai didi

iphone - "Cannot find executable for CFBundle/CFPlugIn"错误

转载 作者:行者123 更新时间:2023-12-03 18:30:55 26 4
gpt4 key购买 nike

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)

这是我尝试运行此代码时遇到的错误:

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];

您知道为什么会发生这种情况吗?

我已经包含了所需的框架,并且代码运行得很好,唯一的就是这个奇怪的控制台消息..

编辑:新的奇怪消息:

AddRunningClient starting device on non-zero client count

播放 MP3 时。

最佳答案

由于问题不在代码中,因此可能有多种原因导致您的问题,因此:

  1. 我建议您创建一个简单的项目,在其中放置最简单的音频文件或运行苹果的示例项目之一,例如 MetronomeavTouch

  2. 尝试通过在终端中写入来卸载 XCode:

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

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

  3. 尝试使用 MPMoviePlayerController 播放相同的文件

  4. 尝试在 iPhone 上运行。

iPhone SDK 4.0 Beta 上的 mpmoviePlayercontroller 也会出现消息“AddRunningClient running device on non-zero client count”,因此您不必太担心。

希望我的回答对您有帮助!

关于iphone - "Cannot find executable for CFBundle/CFPlugIn"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2345263/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com