From fd6b65509a002e816b4bafafa700ffb5925a144e Mon Sep 17 00:00:00 2001 From: Daniel Bear Date: Wed, 10 Jul 2013 15:46:38 -0400 Subject: [PATCH] Fix for building in Xcode 5, use performSelector for UIDevice uniqueIdentifier. --- BPXLUUIDHandler.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BPXLUUIDHandler.m b/BPXLUUIDHandler.m index 0de8709..752cbd9 100644 --- a/BPXLUUIDHandler.m +++ b/BPXLUUIDHandler.m @@ -102,7 +102,9 @@ + (NSString *)generateUUID #if TARGET_IPHONE_SIMULATOR #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" - return [[UIDevice currentDevice] uniqueIdentifier]; + if ([[UIDevice currentDevice] respondsToSelector:@selector(uniqueIdentifier)]) { + return [[UIDevice currentDevice] performSelector:@selector(uniqueIdentifier)]; + } #pragma clang diagnostic pop #endif CFUUIDRef uuidRef = CFUUIDCreate(NULL);