Chartboost iOS Binding works on iOS 6 but crashes on iOS 5

BlueRiverBlueRiver Dominik HaslingerATMember

Hi there!

I've created a Monotouch iOS binding for the latest version of the Chartboost SDK. It works fine when I run it on the iOS 6 Simulator but fails on the iOS 5 Simulator.

The error message: NSInvalidArgumentException Reason: -[__NSCFDictionary setObject:forKeyedSubscript:]: unrecognized selector sent to instance 0x11b8cce0

0 blockpuzzle 0x0016c92e mono_handle_exception_internal_first_pass + 2190 1 blockpuzzle 0x0016e372 mono_handle_exception_internal + 1602 2 blockpuzzle 0x0016eebf mono_handle_exception + 47 3 blockpuzzle 0x001b1ff2 mono_x86_throw_exception + 306 4 ??? 0x07dc9f8f 0x0 + 131899279 5 blockpuzzle 0x002f40ce monotouch_exception_handler + 158 6 CoreFoundation 0x024c812c handleUncaughtException + 76 7 libobjc.A.dylib 0x022e8f43 objc_terminate + 86 8 libc++abi.dylib 0x02a868de _ZL19safe_handler_callerPFvvE + 13 9 libc++abi.dylib 0x02a86946 __cxa_bad_typeid + 0 10 libc++abi.dylib 0x02a87ab2 _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception + 0 11 libobjc.A.dylib 0x022e8e15 _objc_exception_destructor + 0 12 CoreFoundation 0x024c9ced -[NSObject doesNotRecognizeSelector:] + 253 13 CoreFoundation 0x0242ef00 ___forwarding + 432 14 CoreFoundation 0x0242ece2 _CF_forwarding_prep_0 + 50 15 blockpuzzle 0x00026737 -[CBAPIConnection sendRequest:success:failure:] + 1175 16 blockpuzzle 0x0002629b -[CBAPIConnection sendRequest:success:] + 55 17 blockpuzzle 0x000235df -[Chartboost startSession] + 468 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) at com.blueriver.chartboost.Chartboost.startSession ()

It seems that NSCFDictionary setObject:forKEyedSubscript: is only available in iOS 6.x. Therefore I've set the iOS build SDK version for my project to 6.1 and the deployment target to 4.3 but it still only works on iOS 6.

Anyone knows what I'm missing?

Answers

Sign In or Register to comment.