error: use of undeclared type '$__lldb_context' in NSAttributedString extension After reopening Xcode and clearing the project the error disappeared.