could not insert new action connection could not find any information for the class named

玩代码的时候遇到一问题,用的 storyboard 的时候分页不能自动获取到类,Automatic 里是空的,然后自动选到该类下的时候控件貌似可以拖过去,但是当 cennect 的时候会报错:“could not insert new action connection could not find any information for the class named”。于是猜测,target 中没有自动导入这个类,可是去查看一遍这个类的.m 文件的确存在呀。怎么办呢?退出 Xcode,在空白页使用Command+Shift+G 调出前往文件夹界面,然后输入 ~/Library/Developer/XCode/DerivedData:

在 DerivedData 文件夹中找到你的出错的这个工程名:

将其从中删除,最后打开这个工程,再次编译,就可以自动获取到关联类文件啦。

参考来源: http://blog.csdn.net/keyboardota/article/details/9614383

时间: 2024-08-26 17:44:58

could not insert new action connection could not find any information for the class named的相关文章

iOS Xcode, 解决“Could not insert new outlet connection”的问题。

在Xcode中,我们可以在StoryBoard编辑界面或者是xib编辑界面中通过“Control键+拖拽“的方式将某个界面元素和对应的代码文件连接起来,在代码文件中创建outlet. 不过,如果你的运气不太好,执行以上操作的过程中你可能会遇到下面这样的错误: 如图: Could not insert new outlet connection: Could not find any information for the class named "xxx". 其中的“xxx”就是你的目

ios开发之--解决“Could not insert new outlet connection”的问题。

在Xcode中,我们能够在StoryBoard编辑界面或者是xib编辑界面中通过"Control键+拖拽"的方式将某个界面元素和相应的代码文件连接起来.在代码文件里创建outlet. 只是.假设你的运气不太好.运行以上操作的过程中你可能会遇到以下这种错误: Could not insert new outlet connection: Could not find any information for the class named "xxx". 当中的"

Xcode使用xib拖线时出现: could not insert new outlet connection

解决方法: 1.在新建类的时候没有选择将这个类加入到对应的"Target"中. 2.重新将文件加入项目 操作步骤就是选中出问题的.m和.h文件,点删除键,然后选"Remove Reference",这样就不会真正删除文件.接着选"File -> Add Files to ..."菜单,在文件选择界面选择刚才的.m文件和.h文件将他们重新加入项目中. 3. 直接删除DeriveData 操作步骤是关闭当前项目,然后关闭Xcode,然后通过Te

常见错误--06.18

If you get the following error when you’ve created a new class in Xcode and you’ve choose also to create nib file and you try to connect for example an UILabel to the .h file of the class: Could not insert new outlet connection: Could not find any in

iOS开发的一些小技巧

20140326 1.判断设备是3.5寸还是4寸? if ([[UIScreen mainScreen] currentMode].size.height == 480||[[UIScreenmainScreen] currentMode].size.height == 960) { //这是3.5寸的iPhone设备 } else { //这是4寸的iPhone设备 } 之前写了好长时间代码,忘了在3.5寸屏幕适配,今天一跑,发现控件的显示有问题,需要通过代码判断下屏幕尺寸,然后做相应处理,但

MyBatis insert返回主键(sqlserver2008)

mybatis insert返回主键(sqlserver2008) MyBatisXML配置,下面两种方式都行 方式1: <insert id="insert" parameterType="com.user.model.User" > <selectKey resultType="java.lang.Integer" keyProperty="id" order="AFTER" >

Clr编写Insert Triggr

在CLR编写一个插入娄据的触发器. 这个触发器是当对表插入数据时,即时把刚才插入的数据显示出来: 可复制代码: public static void tri_RetrieveJustInsertedData() { SqlCommand command; SqlTriggerContext triggContext = SqlContext.TriggerContext; SqlPipe pipe = SqlContext.Pipe; SqlDataReader sdr; switch (tri

Android设计和开发系列第二篇:Action Bar(Develop—Training)

Adding the Action Bar GET STARTED DEPENDENCIES AND PREREQUISITES Android 2.1 or higher YOU SHOULD ALSO READ Action Bar Implementing Effective Navigation DESIGN GUIDE Action Bar The action bar is one of the most important design elements you can imple

ASA TCP Connection Flags

Have you ever wondered what the flags meant when you issued the show conn or show connections command? This post will demystify that for you. Viewing the Connections Use the command show conn to view the connections currently going through the firewa