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

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!