johnezang / JSONKit

Objective-C JSON
6.21k stars 1.66k forks source link

After update to iOS 7.1 and Xcode 5.1 #148

Open brightsider opened 10 years ago

brightsider commented 10 years ago

My app now crash when view disappear. Before update app was not crashed.

Log: malloc: * error for object 0x14643bf4: incorrect checksum for freed object - object was probably modified after being freed. * set a breakpoint in malloc_error_break to debug

Highlighted string:

if(JK_EXPECT_T((parseState->cache.items[bucket].bytes = (unsigned char )reallocf(parseState->cache.items[bucket].bytes, parseState->token.value.ptrRange.length)) != NULL)) in function static void jk_cachedObjects(JKParseState *parseState)

brightsider commented 10 years ago

I'm fix Xcode warnings for NSInteger types with adding (unsigned long) and app stop crashes.

Crashes still have not stopped. Help!

etiennemartin commented 10 years ago

You might have to remove the 64 bit architecture from your project settings. My guess is this is happening because Apple added arm64 as part of the standard architectures. You might have to manually set it to armv7, armv7s...

ttv100682 commented 10 years ago

Hi, so JSONKit not support arm64 yet. I also got this issue when building my app with architect arm64.