Xcode報類似這樣的錯誤:Unknown class XXView in Interface Builder file.可能是view也可能是ViewController。
這樣的錯誤一般是從另外一個工程中拷貝過來的xib,在新工程中沒有標明xib屬于哪個Module造成的,可以手動填寫Module或者直接勾選 Inherit Module From Target 即可
運行Xcode 報錯時xib中Module是None,個人認為沒有關聯到當前Module中
報錯時的Module.png
手動添加Module或者勾選當前Target的Module之后就解決了運行崩潰的問題
修正后1.png
修正后2.png