diff options
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | uiduid.mm | 12 |
2 files changed, 13 insertions, 1 deletions
@@ -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; +} |