随记(三)--Xcode故事板拖拉时,could not insert new outlet connection :Could not find any information for the class named "xxx".

两种解决方法:

1:重新将文件加入项目

选中出问题的.m和.h文件,选“remove Reference“(这样就不会真正的删除),再选“File->Add Files to ...”菜单,在项目中选择之前的.m和.h文件重新添加到项目中;

2: 直接删除DeriveData

关闭Xcode,再“shift+comment+G”快捷键前往文件夹,查找该目录~/Library/Developer/XCode/DerivedData 

在里面找到以你的项目开头的文件,将它们删除。接着重新启动Xcode,再clean一下

posted @ 2016-03-21 14:02  Gary随风  阅读(166)  评论(0编辑  收藏  举报