diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-31 15:53:55 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-31 16:17:42 +0000 |
commit | ad089983c1a18504b224a674f27b5f9ba3f4b49f (patch) | |
tree | ce88f1910a9b232a4dc36420587587d36cf49a23 | |
parent | 73b6bd3c3bfaa9fafbb3ab511cdd89f5ccddee46 (diff) |
Do not try the new private app rebuild on iOS <<8.
-rw-r--r-- | uicache.mm | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |