From 6de70135e823d71e470efdd69fcb255ef78bc7b1 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 29 Apr 2016 10:24:31 +0000 Subject: [PATCH] Don't abort if NSAutoreleasePool is not found. Fixes #17 --- arc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc.m b/arc.m index b8d177f..b7a3b3b 100644 --- a/arc.m +++ b/arc.m @@ -220,7 +220,7 @@ static inline void initAutorelease(void) { if (Nil == AutoreleasePool) { - AutoreleasePool = objc_getRequiredClass("NSAutoreleasePool"); + AutoreleasePool = objc_getClass("NSAutoreleasePool"); if (Nil == AutoreleasePool) { useARCAutoreleasePool = YES;