From: Jay Freeman (saurik) Date: Fri, 31 Oct 2014 15:53:55 +0000 (+0000) Subject: Do not try the new private app rebuild on iOS <<8. X-Git-Tag: v1.1.9~1 X-Git-Url: https://git.saurik.com/uikittools.git/commitdiff_plain/ad089983c1a18504b224a674f27b5f9ba3f4b49f?ds=inline Do not try the new private app rebuild on iOS <<8. --- diff --git a/uicache.mm b/uicache.mm index 2eafcdd..05bf391 100644 --- a/uicache.mm +++ b/uicache.mm @@ -89,6 +89,7 @@ int main(int argc, const char *argv[]) { Class $LSApplicationWorkspace(objc_getClass("LSApplicationWorkspace")); LSApplicationWorkspace *workspace($LSApplicationWorkspace == nil ? nil : [$LSApplicationWorkspace defaultWorkspace]); + if (kCFCoreFoundationVersionNumber > 1000) // this API is on iOS 7 but invaliding the icon cache is harder there if ([workspace respondsToSelector:@selector(_LSPrivateRebuildApplicationDatabasesForSystemApps:internal:user:)]) { if (![workspace _LSPrivateRebuildApplicationDatabasesForSystemApps:YES internal:YES user:NO]) fprintf(stderr, "failed to rebuild application databases");