Permalink
Browse files

No need to grab the uniqueidentifier in the simulator

  • Loading branch information...
thuss committed Jul 27, 2012
1 parent 7311563 commit 4b667442e60b02b621950e38c61b3a45e802900a
Showing with 4 additions and 2 deletions.
  1. +4 −2 AnalyticsKitTestFlightProvider.m
@@ -16,8 +16,10 @@ @implementation AnalyticsKitTestFlightProvider
self = [super init];
if (self) {
#ifdef DEBUG
- // Since Apple no longer allows UDID, TestFlight recommends sending it only in DEBUG builds
- [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
+ #if (!TARGET_IPHONE_SIMULATOR)
+ // Since Apple no longer allows UDID, TestFlight recommends sending it only in DEBUG builds
+ [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
+ #endif
#endif
[TestFlight takeOff:testFlightKey];
}

0 comments on commit 4b66744

Please sign in to comment.