yajl-objc icon indicating copy to clipboard operation
yajl-objc copied to clipboard

-[NSConcreteMutableData yajl_JSON:]: unrecognized selector sent to instance

Open sidha opened this issue 14 years ago • 1 comments

When running the Test.app in the iPhoneSimulator4.2, I tried the "HLJSONDataSourceTest/testFail" and I got an exception with yajl:

2011-02-09 22:38:35.151 Tests[43724:207] HLJSONDataSourceTest/testFail
2011-02-09 22:38:37.413 Tests[43724:207] Re-running: HLJSONDataSourceTest/testFail <GHTest: 0x60e9020> 2011-02-09 22:38:37.920 Tests[43724:207] -[NSConcreteMutableData yajl_JSON:]: unrecognized selector sent to instance 0x60f6760 2011-02-09 22:38:37.935 Tests[43724:207] -[NSConcreteMutableData yajl_JSON:]: unrecognized selector sent to instance 0x60f6760 #0 0xe11bcc __exceptionPreprocess() (/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation)

[..more]

I found a similar issue at StackOverflow:

http://stackoverflow.com/questions/2415631/has-anyone-had-experience-using-the-objective-c-bindings-for-yajl

I followed the advice of adding -ObjC and -all_load compiler flags(all configurations). Compiled with these new linker warning but ignored them:

Ld build/YAJL.build/Release/YAJL.build/Objects-normal/ppc/YAJL normal ppc cd /Users/sidha/git/yajl-objc/Project setenv MACOSX_DEPLOYMENT_TARGET 10.5 /Developer/usr/bin/gcc-4.2 -arch ppc -dynamiclib -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/sidha/git/yajl-objc/Project/build/Release -F/Users/sidha/git/yajl-objc/Project/build/Release -filelist /Users/sidha/git/yajl-objc/Project/build/YAJL.build/Release/YAJL.build/Objects-normal/ppc/YAJL.LinkFileList -install_name @rpath/YAJL.framework/Versions/A/YAJL -Xlinker -rpath -Xlinker @loader_path/../Frameworks -mmacosx-version-min=10.5 -ObjC -all_load -framework Cocoa -single_module -compatibility_version 0 -current_version 0.2.25 -o /Users/sidha/git/yajl-objc/Project/build/YAJL.build/Release/YAJL.build/Objects-normal/ppc/YAJL

ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o) ld: warning: can't add line info to anonymous symbol anon-func-0x0 from /Developer/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)

Anyway, re-running the test still crashes the same way. Should I worry about this or ignore it?

Michael

sidha avatar Feb 10 '11 03:02 sidha

Why no one answer this?

allen8300 avatar Jan 27 '15 12:01 allen8300