codematrix
codematrix

Reputation: 1611

_OBJC_CLASS_$_SBJsonParser referenced from: error

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

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

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

  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

Upvotes: 3

Views: 2097

Answers (1)

mharper
mharper

Reputation: 3272

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

Upvotes: 6

Related Questions