1

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?

asked Jul 9, 2009 at 14:23

quano's user avatar

2

4

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.

answered Jul 9, 2009 at 15:05

David Wong's user avatar

5 Comments

Move up to version 2.2 for the SDK. That's your problem. Most people don't use 2.0 anymore.

Double click your project file under "groups and files" then navigate to the "Build" tab and change the "Base SDK" to "iPhone Device 2.2". Hope this helps.

This is odd, now it's red again even though I'm using 2.2 or above. I didn't even do anything, just opened the project again and boom, there it is red again.

Ah, nm, I got confused with Active sdk and the project properties. Somehow the Base SDK had switched again, and once I switched it to the correct sdk it started working again.

-5

  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.

answered Sep 16, 2009 at 15:36

macbuddy45

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.