Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
283 views
in Technique[技术] by (71.8m points)

How can I fix an error in Xcode that shows an unknown class in Interface Builder

I try to compile my project and I got the following error:

2021-02-05 14:33:32.012929-0300 testeNovaView[3811:50182] [Storyboard] Unknown class _TtC13testeNovaView9VIewFile2 in Interface Builder file.

I try to open the storyboard file as a source code, but I can't find any reference from the class _TtC13testeNovaView9VIewFile2.

Where is that reference?

question from:https://stackoverflow.com/questions/66067998/how-can-i-fix-an-error-in-xcode-that-shows-an-unknown-class-in-interface-builder

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I find the problem.

I deleted the class some time ago, but didn't remove from the ViewController before remove the file.

I created the file again attach to the view Controller.

After that I remove the file from the view Controller, I create another file and put it in the viewController.

The error has gone now.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...