“Could not find any information for class named ViewController”

后端 未结 30 2026
南方客
南方客 2020-12-02 06:35

This bug has been driving me nuts since I started using Xcode (4.6.3). Whenever I try to link a Storyboard item to my code, I get the error:

Could not

30条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 07:22

    I just had this problem on April 2017 with Xcode 8

    Simply creating an outlet through code and compiling fixed it. eg:

    @IBOutlet weak var containerViewHeight: NSLayoutConstraint!
    

    You got to love Xcode…

    Edit: Still happening on Xcode 9

提交回复
热议问题