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

ERROR while importing mobileCoreServices.h in the self destructing message iPhone app tutorial

Hi i'm having an issue with importing the mobileCoreServices.h into my the CameraViewController.m file.

This is what i typed to import the file: "#import [angular bracket]MobileCoreServices.h/UTCoreTypes.h[angular bracket]"

but there is an error message saying: "Could not build module 'MobileCoreServices'"

please help!

2 Answers

Stone Preston
Stone Preston
42,016 Points

did you add that framework in the link binary with libraries section of your projects build phases?

Yes i've done that! Actually i've fixed the problem already by following this:

Build Settings Apple LLVM 5.0 - language - Modules, set Enable Modules (C and objective c) as NO

but i'm not sure why this works.