From 9dcf05302c804d9a6209916734f590acecdfc18c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 29 Aug 2008 22:12:48 +0000 Subject: [PATCH] Added uiduid. --- makefile | 2 +- uiduid.mm | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 uiduid.mm diff --git a/makefile b/makefile index 740b666..cf9cbd0 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -all: uishoot +all: uiduid uishoot %: %.mm $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc diff --git a/uiduid.mm b/uiduid.mm new file mode 100644 index 0000000..f9580f0 --- /dev/null +++ b/uiduid.mm @@ -0,0 +1,12 @@ +#import +#import +#include + +int main(int argc, char *argv[]) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + printf("%s\n", [[UIDevice uniqueIdentifier] UTF8String]; + + [pool release]; + return 0; +} -- 2.45.2