Xcode iPhone - Adding framework works a little bit
-
12-09-2019 - |
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?
Solution
Try adding AVFoundation framework via your target.
- Look for your target under "Groups and Files"
- "Get Info" for it
- Click the "General" tab
- At the bottom right of the window click the "+" button
- At the top of your list you should find AVFoundation, add it.
OTHER TIPS
- close Xcode
- delete your project
- shut down your mac
- take the mac back to your boss and tell him it's not working
- wait until they figure out what it is
- 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