@@ -1116,6 +1116,17 @@ + mutableCopyWithZone: (void*)zone { OF_UNRECOGNIZED_SELECTOR } + +/* Required to use ObjFW from Swift */ ++ allocWithZone: (void*)zone +{ + if OF_UNLIKELY (zone != NULL) { + [self doesNotRecognizeSelector: _cmd]; + abort(); + } + + return [self alloc]; +} @end