Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grand Central Dispatch EXC_BAD_ACCESS Exception

I have an empty block which runs fine in iPhone 6.0 simulator in Xcode, however when I switch to the iPhone 5.1 simulator I get the following exception: "EXC_BAD_ACCESS".

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        // I've removed all code from here and exception still occurs.
    });

Any ideas what causes this? The exception is thrown at the dispatch_async line. Not sure if it matters, though I am using ARC.

like image 931
mservidio Avatar asked Oct 12 '25 21:10

mservidio


1 Answers

Mistake on my part, I had the iOS Deployment Target set at 6.0. I've updated it to 5.1 now and it works fine.

like image 50
mservidio Avatar answered Oct 16 '25 07:10

mservidio