"Cannot find executable for CFBundle/CFPlugIn" error
- by Emil
Cannot find executable for CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded)
Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (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];
Any idea why? :S
I have included the needed frameworks, and the code works great, the only thing is this odd Console-message..