4

I have created bridging header in my swift project, for use of objective c files.

whenever I import the objective c files in my project, then my swift files showing error. I have tried all solutions available on stack overflow bt not working. same issue checked on GitHub bt no answer found-- https://github.com/hackiftekhar/IQKeyboardManager/issues/1066

here is screenshot

check screenshot

2 Answers2

3

I have faced the same. Quit Xcode & Clean the derived data solved the problem for me.

Himanshu Gupta
  • 207
  • 1
  • 6
0

enter image description here

I was getting the error above. My setup was something like:

class ViewController: UIViewController {
    let tableview: UITableView = {
        let tv = UITableView()
        tv.frame = UIScreen.main.bounds

        return tv
    }()

    func makeContextMenu(for indexPath: IndexPath) -> UIMenu? {

            let cell = self.tableView.cellForRow(at: indexPath)
            pasteboard.string = cell?.detailTextLabel?.text
        }


}

Can you tell what the problem is?

It was because in my makeContextMenu I was calling tableview, tableView ie I was wrongly uppercasing it.

mfaani
  • 33,269
  • 19
  • 164
  • 293