]> git.saurik.com Git - uikittools.git/blobdiff - uiduid.mm
We need to kill installd in order for uicache to work.
[uikittools.git] / uiduid.mm
index f9580f019040425acea42235e499b6c88b8a7ba6..dcfbfc3fdf4a45e8f65fe39937b5a3557fa142e9 100644 (file)
--- a/uiduid.mm
+++ b/uiduid.mm
@@ -1,11 +1,11 @@
 #import <Foundation/Foundation.h>
 #import <UIKit/UIDevice.h>
-#include <cstdio>
+#include <stdio.h>
 
 int main(int argc, char *argv[]) {
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
 
-    printf("%s\n", [[UIDevice uniqueIdentifier] UTF8String];
+    printf("%s\n", [[[UIDevice currentDevice] uniqueIdentifier] UTF8String]);
 
     [pool release];
     return 0;