Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Josh Perkins
Josh Perkins
3,239 Points

Crystal Ball Build Failed

Im at the portion of the crystal ball app where we're adding arrays, and when I went to run the app, the build failed and I got this message:

malformed or corrupted PCH file: 'could not find file '/Applications/Xcode.app/Contentc/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/secure/_stdio.h' referenced by AST file'

I have no idea how to fix it or what went wrong to cause it to fail. Any help would be much appreciated, Thanks!

1 Answer

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

Every iOS project has a "Supporting Files" folder within Xcode and there should be a file with a ".pch" extension. For the Crystal Ball project there should be one named "CrystalBall-Prefix.pch". If it is missing you can copy it from the project files provided to you, which can be downloaded below the video under the Downloads section.

Josh Perkins
Josh Perkins
3,239 Points

Thanks for the quick reply! I opened up the supporting files folder, and the crystal ball-prefix.pch file is there already, but still no luck getting the app to run.

Josh Perkins
Josh Perkins
3,239 Points

Never mind, I deleted the original crystal ball-prefix.pch file and replaced it with the one from the project download and now it works. Thanks for your help!