Openfeint integration problem - plugin conflict?

I’m trying to integrate openfeint in my game but I’m running on a weird issue.

Steps I did:

  1. Executed a (simple) Build
  2. Integrated openfeint’s folder into xcode project
  3. Added missing frameworks (gamekit and mobilecoreservices)
  4. (In XCode) Executed Build and Run

The game crashes after (?) the splashscreen. Bellow is a full dump from gdb session.

Maybe its important to say, I’m using:

  1. Prime31’s mobclix and storekit plugins
  2. Stripping Level: Strip Bytecode
  3. API compatibility: .Net 2.0 subset
  4. SDK version: ios 4.2
  5. Target ios version: 4.2

Does anyone have a clue?


I.

[Session started at 2011-03-13 18:27:23 -0300.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-5892-51
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
sharedlibrary apply-load-rules all
continue
2011-03-13 18:26:34.171 nummus[271:307] -> registered mono modules
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
GL_APPLE_framebuffer_multisample GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_OES_blend_subtract GL_OES_compressed_paletted_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_framebuffer_object GL_OES_mapbuffer GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_texture_mirrored_repeat GL_OES_vertex_array_object 
Creating OpenGLES1.x graphics device
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/UnityEngine.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/Assembly-CSharp-firstpass.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/Assembly-CSharp.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/SmartFox2.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/System.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/System.Xml.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/SmartFox2.dll (this message is harmless)
-> force accelerometer registration

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 292.
Unloading 4 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
2011-03-13 18:26:48.535 nummus[271:307] Using OpenFeint version 3012011 (2.9). https://api.openfeint.com/
Non platform assembly: /private/var/mobile/Applications/10F8F5BF-E928-4DCE-A998-E9980344F23B/nummus.app/Data/Managed/Assembly-CSharp-firstpass.dll (this message is harmless)
-> applicationDidBecomeActive()
2011-03-13 18:26:48.741 nummus[271:307] +[OpenFeint applicationDidBecomeActive]: unrecognized selector sent to class 0xd276c0
2011-03-13 18:26:49.058 nummus[271:307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[OpenFeint applicationDidBecomeActive]: unrecognized selector sent to class 0xd276c0'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x35f08c7b __exceptionPreprocess + 114
	1   libobjc.A.dylib                     0x30186ee8 objc_exception_throw + 40
	2   CoreFoundation                      0x35f0a45b +[NSObject(NSObject) doesNotRecognizeSelector:] + 98
	3   CoreFoundation                      0x35eaf467 ___forwarding___ + 506
	4   CoreFoundation                      0x35eaf220 _CF_forwarding_prep_0 + 48
	5   nummus                              0x005e36ec start + 6087716
	6   UIKit                               0x33861dec -[UIApplication _setActivated:] + 120
	7   UIKit                               0x33866aac -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 448
	8   UIKit                               0x338202e4 -[UIApplication handleEvent:withNewEvent:] + 1476
	9   UIKit                               0x3381fb1c -[UIApplication sendEvent:] + 68
	10  UIKit                               0x3381f3b4 _UIApplicationHandleEvent + 6824
	11  GraphicsServices                    0x35262c88 PurpleEventCallback + 1048
	12  CoreFoundation                      0x35e9a5cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 28
	13  CoreFoundation                      0x35e9a589 __CFRunLoopDoSource1 + 164
	14  CoreFoundation                      0x35e8c835 __CFRunLoopRun + 580
	15  CoreFoundation                      0x35e8c50b CFRunLoopRunSpecific + 226
	16  CoreFoundation                      0x35e8c419 CFRunLoopRunInMode + 60
	17  UIKit                               0x33865554 -[UIApplication _run] + 548
	18  UIKit                               0x33862558 UIApplicationMain + 972
	19  nummus                              0x000168dc start + 5652
	20  nummus                              0x000152f0 start + 40
)
terminate called after throwing an instance of 'NSException'
Program received signal:  “SIGABRT”.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
mi_cmd_stack_list_frames: Not enough frames in stack.
mi_cmd_stack_list_frames: Not enough frames in stack.
(gdb) thread apply all bt

Thread 14 (thread 16131):
#0  0x32ca03e4 in pthread_setspecific ()
#1  0x35e6bd14 in _CFAutoreleasePoolPush ()
#2  0x33fb4f14 in -[NSAutoreleasePool init] ()
#3  0x0060a7d4 in start ()

[... had to reduce post size...]

Thread 1 (thread 11523):
#0  0x32d25ad0 in __kill ()
#1  0x32d25ac4 in kill ()
#2  0x32d25ab8 in raise ()
#3  0x32d3cd64 in abort ()
#4  0x3582fa08 in __gnu_cxx::__verbose_terminate_handler ()
#5  0x301888e0 in _objc_terminate ()
#6  0x3582d108 in __cxxabiv1::__terminate ()
#7  0x3582d180 in std::terminate ()
#8  0x3582d2a8 in __cxa_throw ()
#9  0x30186f30 in objc_exception_throw ()
#10 0x35f0a45a in +[NSObject(NSObject) doesNotRecognizeSelector:] ()
#11 0x35eaf466 in ___forwarding___ ()
#12 0x35eaf220 in __forwarding_prep_0___ ()
#13 0x005e36ec in start ()
(gdb)

Just saw this post. Seems to be the same issue:

http://forum.unity3d.com/threads/80747-OpenFeint-iOS-2.9-problems.

This line is where the crash is happening:

I posted the steps to fix that crash http://forum.unity3d.com/threads/80747-OpenFeint-iOS-2.9-problems.?p=520833&viewfull=1#post520833

As an additional note, you’ll want to remove any calls to ‘UnitySetAudioSessionActive’ in AppController+OpenFeint.mm, I believe there are 4 of them total. Those will also cause crashes if they’re executed.