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 Build a Self-Destructing Message iPhone App Retrieving and Viewing Data from Parse.com Viewing Videos Using MPMoviePlayerController

Steven Sosa
Steven Sosa
2,470 Points

Error when importing MediaPlayer module in iOS app

On the: #import <MediaPlayer/MediaPlayer.h> I am getting an error: Could not build module 'MediaPlayer' On: InboxViewController.m

Robert Bojor
Robert Bojor
Courses Plus Student 29,439 Points

Hi Steven, Can you share your code from InboxViewController.m?

in the meantime, do you have the MediaPlayer Framework included into your project?

1 Answer

Steven Sosa
Steven Sosa
2,470 Points

Thanks for your reply Robert! I do have MediaPlayer Framework included, but I noticed that the name of my InboxViewController.m was InboxTableViewController.m (I wrote it wrong), the code was exactly as the video but for some reason it didn't work, so all I did was change the name to InboxViewController to .m and .h files and the error went away.