_OBJC_CLASS_$_SBJsonParser 引用自:错误 [英] _OBJC_CLASS_$_SBJsonParser referenced from: error

查看:85
本文介绍了_OBJC_CLASS_$_SBJsonParser 引用自:错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Xcode 中编译我的项目时出现以下错误.

I am getting below error when I try to compile my project in Xcode.

架构 i386 的未定义符号:_OBJC_CLASS_$_SBJsonParser 引用自:……

Undefined symbols for architecture i386: _OBJC_CLASS_$_SBJsonParser referenced from: …

我尝试了以下但问题仍然存在?感谢您的帮助.

I tried following but still the problem persists? Appreciate any help.

  1. 删除了NSObject+SBJSON.m"和NSString+SBJSON.m"文件并重新添加到构建阶段的编译源.
  2. 在构建设置中为有效架构添加了 i386.
  3. 尝试使用 -all_load 链接器标志
  1. Removed "NSObject+SBJSON.m" and "NSString+SBJSON.m" files and added back to Compile sources of Build Phases.
  2. Added i386 for Valid Architecures in Build Settings.
  3. Tried with -all_load linker flag

推荐答案

确保将 SBJsonWriter.m、SBJsonParser.m 和 SBJsonBase.m 添加到目标的编译源构建阶段.

Make sure you add SBJsonWriter.m, SBJsonParser.m, and SBJsonBase.m into the Compile Sources build phase for your target.

这篇关于_OBJC_CLASS_$_SBJsonParser 引用自:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆