Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error

问题描述:Undefined symbols for architecture i386:

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


Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error_第1张图片



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

1.相关工程文件未导入


Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error_第2张图片



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



2..framework文件未导入


Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error_第3张图片



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



3.文件路径缺失


Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error_第4张图片


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


4.Linking---other linker flags

   添加-ObjC即可


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

你可能感兴趣的:(error,xcode,framework,undefined,from,Referenced,symbols)