Undefined symbols for architecture i386: _OBJC_CLASS_$_XXX", referenced from: error


情景:

在项目中导入了一个第三方工具包,后在同一项目的另一个第三方工具包也包含这个包。因为重复,因而我删掉一个。


1, 报错原因:

Undefined symbols for architecture i386: _OBJC_CLASS_$_XXX", referenced from: error

(XXX为出错的类)


2,解决:

TargetSettings -> Build Phases -> Compile Sources -> add your XXX.m class(注意是.m) ->Build and Run


参考:

http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-referenc


你可能感兴趣的:(学习iOS遇到的问题)