]> git.saurik.com Git - uikittools.git/commitdiff
Do not try the new private app rebuild on iOS <<8.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 31 Oct 2014 15:53:55 +0000 (15:53 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 31 Oct 2014 16:17:42 +0000 (16:17 +0000)
uicache.mm

index 2eafcddc9702062c8d0b4f77cd981ca66ac966f6..05bf3910ce8615890ac3d5c8db4683d3991ed4a3 100644 (file)
@@ -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");