“Could not find any information for class named ViewController”

后端 未结 30 1926
南方客
南方客 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:34

    I tried everything and it didn't work, so for me what worked is:

    • Clean Build folder and project.
    • Open Projects (Window -> Projects)
    • Find your project on the list and delete the Derived Data
    • Close Xcode
    • Restart computer (without choosing to reopen windows that are open)
    • run Xcode
    • Work!

    All my view controllers were not being recognized, so deleting all files and re-adding was not an option as this is a big project.

提交回复
热议问题