Xcode 8 - IB Designables - Failed to render and update auto layout status, The agent crashed

后端 未结 20 1178
半阙折子戏
半阙折子戏 2020-11-27 09:55

I recently upgraded to Xcode 8 and I am having issues with the Storyboard.

If I open the project and I don\'t have the Storyboard open, it will compile and run just

20条回答
  •  时光取名叫无心
    2020-11-27 10:41

    If you're using xib file for custom uiview. Try this:

    Change from

    Bundle.main.loadNibNamed("UserView", owner: self, options: nil)
    

    To:

    let bundle = Bundle(for: UserView.self) 
    bundle.loadNibNamed("UserView", owner: self, options: nil)
    

提交回复
热议问题