解决Xib属性连线报Could not insert new outlet connection: Could not find any information for the class na...

       今天从SVN上拉取代码下来,准备连接Xib属性的时候,突然出现Could not insert new outlet connection: Could not find any information for the class named的报错,然后怎么都不能连接属性了,如下图所示:


解决Xib属性连线报Could not insert new outlet connection: Could not find any information for the class na..._第1张图片
报错截图

解决流程:

   一、首先关闭退出Xcode;

   二、

    1、快速进入到对应目录中,打开任意一个文件夹,使用组合快捷键“Shift+Command+G”,弹出一个输入路径的输入框,复制~/Library/Developer/XCode/DerivedData,粘贴到输入框内,点击前往。 

    2、进入”~/Library/Developer/XCode/DerivedData”目录中,找到用工程名字和一串字母连接起来命名的工程,删除对应的文件夹,如下图:


解决Xib属性连线报Could not insert new outlet connection: Could not find any information for the class na..._第2张图片
路径截图


解决Xib属性连线报Could not insert new outlet connection: Could not find any information for the class na..._第3张图片
路径截图


三、重启Xcode,打开原来的工程,重新进行拖拽操作即可成功

你可能感兴趣的:(解决Xib属性连线报Could not insert new outlet connection: Could not find any information for the class na...)