From 9c31b9ab6733666d400b9e5537ed5c6ad0770f81 Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Fri, 1 Aug 2014 20:02:50 -0400 Subject: [PATCH] Logging migration errors --- Signal.xcodeproj/project.pbxproj | 2 +- Signal/src/environment/VersionMigrations.m | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Signal.xcodeproj/project.pbxproj b/Signal.xcodeproj/project.pbxproj index 8705dc46b..60d1574de 100644 --- a/Signal.xcodeproj/project.pbxproj +++ b/Signal.xcodeproj/project.pbxproj @@ -3643,7 +3643,7 @@ ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-fobjc-arc-exceptions"; PROVISIONING_PROFILE = ""; - "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; + "PROVISIONING_PROFILE[sdk=iphoneos*]" = "A4026C2D-D5F0-40C5-B1B4-5EA8E8A1876B"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; diff --git a/Signal/src/environment/VersionMigrations.m b/Signal/src/environment/VersionMigrations.m index 3bd7f33c2..f17363ea0 100644 --- a/Signal/src/environment/VersionMigrations.m +++ b/Signal/src/environment/VersionMigrations.m @@ -24,8 +24,6 @@ NSPropertyListFormat format; NSDictionary *dict = [NSPropertyListSerialization propertyListWithData:plistData options:NSPropertyListImmutable format:&format error:&error]; - NSLog(@"%@", dict); - NSArray *entries = [dict allKeys]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; @@ -46,6 +44,12 @@ [[PushManager sharedManager] askForPushRegistration]; + [[NSFileManager defaultManager] removeItemAtPath:path error:&error]; + + if (error) { + DDLogError(@"Error upgrading from 1.0.2 : %@", error.description); + } + return; }