ewan
ewan

Reputation: 276

Unknown class CustomUITableViewCell in Interface Builder file xcode 8

I try to create a custom UITableViewCell in my project. In another project it's work fine, but in the current, I have an error.

Unknown class DetailsMYFRiendsTableView in Interface Builder file

The first thing I do is to check in Storyboard, but I can't add a module !

Error xcode

When I try to select, no module is available, If I try to add manually my project name ( ex : My Project ) it's not working, If I try with : My_Project it's not working too.

Another thing I try is to edit Storyboard with the source code and adding this line :

customModule="AppName" customModuleProvider="target"

But I have the same error, always.

This a my class declaration in my ViewController :

class DetailsFriendsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
... Some code
}
class DetailsMYFRiendsTableView: UITableViewCell {

        @IBOutlet var city: UILabel!
        @IBOutlet var gps: UILabel!
        @IBOutlet var date: UILabel!
    }

Upvotes: 1

Views: 1396

Answers (2)

Vishal Sonawane
Vishal Sonawane

Reputation: 2693

 Target --> Build Phases --> Compile Sources

Check if your file exists here. If not then add it here then clean, build and run your project.

Upvotes: 0

CST
CST

Reputation: 313

Check your compiled source, whether that file(e.g; ViewController.m) is added or not.

Upvotes: 1

Related Questions