Character not found: _OBJC_CLASS _ $ _ NSObject

I get the following error when running a Mac application in OS X 10.7.3 (Lion):

Dyld Error Message:   Symbol not found: _OBJC_CLASS_$_NSObject   Referenced from: /Users/USER/Desktop/MyApp.app/Contents/MacOS/../Frameworks/SBJson.framework/Versions/A/SBJson   Expected in: /usr/lib/libobjc.A.dylib 

The app works fine on OS X 10.8.1 (Mountain Lion) and was built with Xcode 4.4 in Mountain Lion. SBJson is a private structure.

What could be the problem?

+7
source share
2 answers

Set your deployment target 10.7.

+8
source

The value of the OS X Deployment Target in the build settings of your linked libraries should be less than or equal to the OS X Deployment Target main Xcode application object.

(yes, this is confusing because "target" has a double meaning here: "Deployment Target" and "Xcode Target")

+3
source

All Articles