summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile2
-rw-r--r--uiduid.mm12
2 files changed, 13 insertions, 1 deletions
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 <Foundation/Foundation.h>
+#import <UIKit/UIDevice.h>
+#include <cstdio>
+
+int main(int argc, char *argv[]) {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ printf("%s\n", [[UIDevice uniqueIdentifier] UTF8String];
+
+ [pool release];
+ return 0;
+}