X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8e0afb16a2b74230143c58e2d7b93ad848a443dd..0fe4a14bb8b8ae7f74be97d6f51ff1d062d91b74:/ObjectiveC/Library.mm 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");