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 trialSteven Sosa
2,470 PointsError 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
1 Answer
Steven Sosa
2,470 PointsThanks 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.
Robert Bojor
Courses Plus Student 29,439 PointsRobert Bojor
Courses Plus Student 29,439 PointsHi Steven, Can you share your code from InboxViewController.m?
in the meantime, do you have the MediaPlayer Framework included into your project?