Search Unity

my iPhone application is getting crash

Discussion in 'iOS and tvOS' started by alagarnraja, May 24, 2011.

  1. alagarnraja

    alagarnraja

    Joined:
    Nov 19, 2009
    Posts:
    69
    hi friends.
    i have successfully integrate the openFeint 2.8i in my iPhone game. but if i open the dashboard in my game and after that i am getting this error

    "Error from Debugger: mi_cmd_stack_list_frames: Not enough frames in stack"

    and also my application is stopped working.
    and also i am getting this warning messages

    "OFSocialNotificationService" may not respond to '+sendWithText'
    "OFSocialNotificationService" may not respond to '+sendWithText:imageNamed'
    'OpenFeint' may not respond to '+applicationDidBecomeActive'
    'OpenFeint' may not respond to '+applicationWillResignActive'

    Can any one please help me. The project is going to be released very soon.
    Thanks in Advance
    Raja
     
  2. Be-Rad

    Be-Rad

    Joined:
    Feb 5, 2009
    Posts:
    34
    I don't have an answer for the dashboard error, but I figured out how to fix the "OFSocialNotificationService" warnings (and subsequent crash if you try to call OpenFeint.SendSocialNotification())

    In Xcode change the SendSocialNotification section in AppController+OpenFeint.mm to this:
    Code (csharp):
    1.     // SendSocialNotification //
    2.     else if(OF_CMD(@"SendSocialNotification"))
    3.     {
    4.         NSMutableString * emptyString = [[NSMutableString alloc] initWithString:@""];
    5.         // Send the social notification.
    6.         if([[args objectAtIndex:2] isEqualToString:ofNoCommand])
    7.         {
    8.             [OFSocialNotificationApi sendWithPrepopulatedText:[args objectAtIndex:1] originalMessage:emptyString imageNamed:emptyString];
    9.         }
    10.         else
    11.         {
    12.             [OFSocialNotificationApi sendWithPrepopulatedText:[args objectAtIndex:1] originalMessage:emptyString imageNamed:[args objectAtIndex:2]];
    13.         }
    14.     }
    And make sure to add this line to the top:

    Code (csharp):
    1. #import "OFSocialNotificationApi.h"
    2.  
     
  3. Pete-L

    Pete-L

    Joined:
    Jun 12, 2011
    Posts:
    8
    radishan thank you so much you just solved my problem. For some reason it is so hard to get this to work properly :(