Frameworks are 'red' in Xcode

Viewed 44956

I downloaded a project developed by Apple employees ( who taught course at Stanford on iPhone application development). Strangely , the frameworks are red.

http://img.skitch.com/20100730-kcjun96mp2pxnpg7w3x6njw57.jpg

I tried to locate coreGraphics.framework and UIKit.framework to add them again but i couldnt find them either.

Taimur

7 Answers

Found a way to fix this automagically:

  • Right click your main Xcode project file (the blue one at the top alt text),
  • Get info,
  • 'General' tab,
  • At the bottom, set 'Base SDK for All configurations' to your desired one.

Done!

Steps to fix this issue in M1 Macs:

  1. Install "sudo gem install cocoapods-deintegrate cocoapods-clean" to install deintegrate if not installed.
  2. Run "pod deintegrate" in terminal in your project folder to uninstall all pods.
  3. Run "pod cache clean —all"
  4. Run "pod install"
  5. Go to Project Explorer Select "Pods" in blue
  6. Select the each pods in the target section
  7. Search for "Excluded Architecture" in Build Settings Tab under "All" sub category.
  8. Add "Any iOS Simulator SDK" in both debug and release and set the value to "arm64" Repeat this for each Pod with the error "Framework not found". Clean Build the project.
Related