Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top