Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Cannot find executable for CFBundle

Hi guys, I'm trying to run the Crystal ball project right after implementing what was taught in the chapter "Adding Sound". The build succeeds and the application runs in the simulator, but the sound won't play. Here is what the console says: CrystalBall[5074:70b] Cannot find executable for CFBundle 0x91a8a70 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)

Here is the code related to audio: '''Objective-C NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"crystal_ball" ofType:@"mp3"]; NSURL *soundURL = [NSURL fileURLWithPath:soundPath]; AudioServicesCreateSystemSoundID(CFBridgingRetain(soundURL), &soundEffect);

AudioServicesPlaySystemSound(soundEffect);'''

I already tried this solution: http://stackoverflow.com/questions/18036381/xcode-5-error-certuiframework-axbundle but it did not work for me. Does anyone knows what's the matter? How can I play the sound?

Interestingly, it does not work on my Mac in the simulator, but it works on my iPad. Since it is not something of a great importance, I stopped looking for a solution ;-)

6 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

That is strange but I'm glad it's working on your device.

Chris Tate
Chris Tate
5,522 Points

I had the same issue and it came down to my system settings ala http://stackoverflow.com/questions/302399/sound-not-working-in-iphone-simulator. I unchecked, unplugged, rechecked and plugged back in—voila!

Ian Stewart
Ian Stewart
4,255 Points

I have the same problem but I am right at the beginning of the process, I have tried resetting the simulator but that hasn't helped. The console shows this;

2014-05-18 23:01:58.139 CrystalBall[67948:90b] Cannot find executable for CFBundle 0x8e4ed10 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)

As a result my new button won't print the NSLog to the console.

Any help would be appreciated.

Thanks

Ian

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

When you have your simulator open from the menu select iOS Simulator -> Reset Content and Settings

Ian Stewart
Ian Stewart
4,255 Points

Thanks for getting back to me Amit but as I mentioned in the post, I have already tried that, is there anything else it might me?

Enjoying the course by the way!

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

The only other thing I can think off is to make sure you have latest version of Xcode and try use the clean feature (shortcut: shift+command+K)

Ian Stewart
Ian Stewart
4,255 Points

Hi Amit, I have the latest version and tried the clean feature but still no go. Doesn't seem to want to print anything to the console. However, the rest of the code seems to work ok. When I push the button it changes to "Yes" so far so good.

I'll crack on and see if it rights itself! Thanks!

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

If log output is your only issue then make sure you have the right bottom icon in the console selected:

Ian Stewart
Ian Stewart
4,255 Points

Hi Amit, That's weird, it works alright now. The console was open all the time BTW but it seems to have righted! Thanks!