0

Sudently, in all my Xcode projects System libraries show in red and I don't know how to fix it.

What I've tried:

However, they still show in red.

Why do I want to fix it?

I have tried to implement UIImagePickerController().
I asked another question here:
Creating an image format with an unknown type is an error UIImagePickerController() , unexpectedly found nil
After didFinishPickingMediaWithInfo delegate method is called, inside func takePhoto in the completion handler I get error:

fatal error: unexpectedly found nil while unwrapping an Optional value Printing description of newImage: expression produced error: error: /var/folders/s0/xq_zc7l56m1__n1qjk29p6tw0000gn/T/./lldb/2631/expr1.swift:1:80: error: use of undeclared type 'UIKit' Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer>(bitPattern: 0x118055200)!.pointee) ^~~~~

enter image description here

enter image description here

bibscy
  • 2,598
  • 4
  • 34
  • 82
  • To your main question: I never used `Security.framework`, but there is no need to explicitly link `Foundation.framework`and `UIKit.framework` to your project, because they are provided by Xcode in any case. So I believe you can just delete the red references. – Reinhard Männer May 08 '18 at 19:40
  • @ReinhardMänner Should I remove reference or move to trash? – bibscy May 08 '18 at 20:14
  • Normally, if you delete something from the project navigator, it asks if you want to delete the reference only or move the referenced file also to the trash. If the reference is red, however, it cannot move the referenced file to the trash, so it should also not ask for these options and delete the reference. – Reinhard Männer May 09 '18 at 06:18

0 Answers0