From 1525054be03fc2dc6f354792006099012765ce43 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 24 Dec 2013 11:20:31 +0000 Subject: Make uicache work on iOS 7 (patch from evad3rs). --- uicache.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uicache.mm b/uicache.mm index 29694d6..cbf3b8e 100644 --- a/uicache.mm +++ b/uicache.mm @@ -180,7 +180,10 @@ int main(int argc, const char *argv[]) { for (NSString *identifier in bundles) { NSString *path([bundles objectForKey:identifier]); - [workspace registerApplication:[NSURL fileURLWithPath:path]]; + if (kCFCoreFoundationVersionNumber >= 800) + [workspace registerApplicationDictionary:[after objectForKey:identifier]]; + else + [workspace registerApplication:[NSURL fileURLWithPath:path]]; } for (NSString *path in removed) -- cgit v1.2.3