How to fix libraries showing in red in Xcode?

对着背影说爱祢 提交于 2020-01-25 10:47:08

问题


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

What I've tried:

  • I deleted xcode as in this answer https://stackoverflow.com/a/33812614/5918849
  • restarted machine
  • downloaded same version Xcode 8.3.3 from https://developer.apple.com/download/
  • opened .xcworkspace, General/Targets/Linked Frameworks and Libraries
  • added all frameworks that were showing in red and built the project

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) ^~~~~

来源:https://stackoverflow.com/questions/50237202/how-to-fix-libraries-showing-in-red-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!