Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

时间:2021-03-08 03:13:49

多个人共同操作同一个项目或拷贝项目时,经常会出现类似这样的问题:

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_xx文件名", referenced from:

Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

下面是可能导致这类问题出现的原因及修改:

1.相关工程文件未导入


Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

你可以直接在这里+进来,也可以在左边工程目录中把文件全部重新导人一遍(多人操作工程时,一般这种解决办法)

2..framework文件未导入


Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

把xx文件库+进来,本问题"_OBJC_CLASS_$_ASIdentifierManager", 就是因为AdSupport.Framework类库未加

3.文件路径缺失


Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法Undefined symbols for architecture i386:"_OBJC_CLASS_$_xx", referenced from: 解决方法

检查是否某些文件路径未加入进来或者写错了

工程编译报出:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:错误,问题大致是由于上面这几种情况,把各个方面检查下基本就ok了。

备注:出现这个问题大都是由于多人共同操作缺少了文件。