Unity Community

Register or Sign In:

+ Reply to Thread
Results 1 to 3 of 3

  1. Location
    india
    Posts
    68

    my iPhone application is getting crash

    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. Location
    San Francisco
    Posts
    18
    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:  
    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:  
    1. #import "OFSocialNotificationApi.h"


  3. Location
    Gold Coast, Australia
    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