_OBJC_CLASS_$_ClassName", referenced from:

在xcode 开发过程中,经常遇到如下错误:

"_OBJC_CLASS_$_ClassName", referenced from:

我总结了两种错误情况:

1.一个类所在的库(框架)没有被引入,常见为framework添加。

解决方法:添加该类所在的库(框架)

2.一个类没有被正确的添加到工程中,这种情况在工程中的确存在这个类,可是程序就是不能识别。

解决方法:选中该类,只删除它在该工程中的引用,然后,再添加引用,如下

时间: 2024-09-20 23:46:37

_OBJC_CLASS_$_ClassName", referenced from:的相关文章

彻底解决_OBJC_CLASS_$_某文件名", referenced from:问题(转)

最近在使用静态库时,总是出现这个问题.下面总结一下我得解决方法: 1. .m文件没有导入   在Build Phases里的Compile Sources 中添加报错的文件 2. .framework文件没有导入静态库编译时往往需要一些库的支持,查看你是否有没有导入的库文件同样是在Build Phases里的Link Binary With Libraries中添加 3. 重复编译,可能你之前复制过两个地方,在这里添加过两次,删除时系统没有默认删除编译引用地址在Build Settings里搜索

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

问题描述 Exception in thread "main" java.lang.Error: Unresolved compilation problems: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files The method getText() from the type TagNode refers to the

Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd)

java开发时遇到的问题,之前还是好好的,没有错误提示.可是今天一打开项目就出现这种问题.真不知道是怎么回事,在这里求助.错误如下: Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd). For more information, right click on the message in the Problems View and select "Show Details...&

error at ::0 can't find referenced pointcut pointCutName 错误解决方法

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate); nested exception is java.la

The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced

springmvc mybatis整合,遇到错误:The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced 缺依赖包导致,在pom.xml加入依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.tr

Referenced file contains errors (http://www.springframework.org/schema...错误

Referenced file contains errors (http://www.springframework.org/schema...错误 Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告

遇到local variable &#39;e&#39; referenced before assignment这样的问题应该如何解决

问题:程序报错:local variable 'e' referenced before assignment 解决:遇到这样的问题,说明你在声明变量e之前就已经对其进行了调用,定位到错误的地方,对变量进行重新的声明 通常这样的问题对于python的程序员来说都是因为习惯了python2的语法,转移到python3中时,出现的错误.在Python3中,异常对象无法在异常块作用域外访问.(原因是在垃圾收集器运行且从内存中清理引用之前会在内存栈帧中保存一个引用周期)通常参考下面这个例子来做异常处理:

Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-config.dtd). For more information, right click on the message in the Problems View and select &quot;Show Details...&quot;

mybatis配置文件报错Referenced file contains errors mybatis的配置文件报错 The errors below were detected when validating the file "mybatis-3-config.dtd" via the file "mybatis-config.xml".  In most cases these errors can be detected by validating &qu

AspectJ 出现错误::0 can‘t find referenced pointcut 的解决

使用AspectJ注解开发AOP应用时,会遇到以下问题: ::0 can't find referenced pointcut 这个问题,实际是与你所在的开发环境有关,如下表 jdk version spring version aspectjrt version and aspectjweaver version 1.6 3.0 + aspectjrt-1.6.2  and aspectjweaver-1.6.2 1.7 3.0 + aspectjrt-1.7.3 and aspectjwea