문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top