From: Jay Freeman (saurik) Date: Thu, 13 Sep 2012 08:49:17 +0000 (-0700) Subject: Prefer __NSCFBoolean to non-__ for iOS compatibility. X-Git-Tag: v0.9.459~7 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/0fe4a14bb8b8ae7f74be97d6f51ff1d062d91b74?ds=inline Prefer __NSCFBoolean to non-__ for iOS compatibility. --- diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index db3196b..1749d88 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2539,9 +2539,10 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry { Selector_type = new(pool) Type_privateData(":"); #ifdef __APPLE__ - NSCFBoolean_ = objc_getClass("NSCFBoolean"); + // XXX: apparently, iOS now has both of these + NSCFBoolean_ = objc_getClass("__NSCFBoolean"); if (NSCFBoolean_ == nil) - NSCFBoolean_ = objc_getClass("__NSCFBoolean"); + NSCFBoolean_ = objc_getClass("NSCFBoolean"); NSCFType_ = objc_getClass("NSCFType"); NSGenericDeallocHandler_ = objc_getClass("__NSGenericDeallocHandler");