Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top