“Could not find any information for class named ViewController”

后端 未结 30 1962
南方客
南方客 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条回答
  •  Happy的楠姐
    2020-12-02 07:19

    This worked for me:

    1. Perform 'Clean build folder'
      (press and hold the 'option' key and go to the "Product" menu to access it.
    2. Perform a simple "Clean" (CMD-SHIFT-K) from the "Product" menu.
    3. Build the project to let Xcode compile the files. Also, let it index files if necessary.

    On a side note, I am not sure if this helped but I also deleted the Derived data before performing the above steps (Xcode preferences > Locations)

提交回复
热议问题