arashpayan / appirater

A utility that reminds your iPhone app's users to review the app.

Home Page:http://arashpayan.com/blog/2009/09/07/presenting-appirater/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EXC_BAD_ACCESS when running on iOS 5.0 simulator (but not on iOS 6 device/simulator)

iwasrobbed opened this issue · comments

I am receiving a crash immediately upon app launch when running the latest version of Appirater on the iOS 5.0 simulator.

The debugger is pointing to the dispatch_async line of code on line 345 of Appirator.m. Any ideas why this would happen?

+ (void)appLaunched:(BOOL)canPromptForRating {
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0),
                   ^{
                       [[Appirater sharedInstance] incrementAndRate:canPromptForRating];
                   });
}

The settings I am using:

    [Appirater setAppId:@"1234567890"];
    [Appirater setDaysUntilPrompt:1];
    [Appirater setUsesUntilPrompt:10];
    [Appirater setSignificantEventsUntilPrompt:-1];
    [Appirater setTimeBeforeReminding:5];
    [Appirater setDebug:NO];
    [Appirater appLaunched:YES];

My mistake, didn't configure the build target to the correct deployment OS.