Xcode报类似这样的错误:Unknown class XXView in Interface Builder file.可能是view也可能是ViewController。
这样的错误一般是从另外一个工程中拷贝过来的xib,在新工程中没有标明xib属于哪个Module造成的,可以手动填写Module或者直接勾选 Inherit Module From Target 即可
运行Xcode 报错时xib中Module是None,个人认为没有关联到当前Module中

手动添加Module或者勾选当前Target的Module之后就解决了运行崩溃的问题


网友评论