Question

No biggie, but when I add the AVFoundation framework for the iPhone, it turns red for some reason I'm unable to figure out why. The project will not compile unless I add this framework, and if I do, Xcode will mark the framework red (apparently that means xcode cannot find the framework), but yet it will work.

This is quite annoying. Any clue what I might be doing wrong here?

Was it helpful?

Solution

Try adding AVFoundation framework via your target.

  1. Look for your target under "Groups and Files"
  2. "Get Info" for it
  3. Click the "General" tab
  4. At the bottom right of the window click the "+" button
  5. At the top of your list you should find AVFoundation, add it.

OTHER TIPS

  1. close Xcode
  2. delete your project
  3. shut down your mac
  4. take the mac back to your boss and tell him it's not working
  5. wait until they figure out what it is
  6. if this doesn't work, find a new job that doesn't require the use of a mac

All I had to do was open up the "General" settings tab for the project and change the "Base SDK for All Configurations" value. It was set to an SDK that I no longer had installed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top