diff --git a/MagicalRecord/Categories/DataImport/NSObject+MagicalDataImport.m b/MagicalRecord/Categories/DataImport/NSObject+MagicalDataImport.m index 9feaf23..900d78f 100644 --- a/MagicalRecord/Categories/DataImport/NSObject+MagicalDataImport.m +++ b/MagicalRecord/Categories/DataImport/NSObject+MagicalDataImport.m @@ -31,7 +31,7 @@ NSUInteger const kMagicalRecordImportMaximumAttributeFailoverDepth = 10; for (NSUInteger i = 1; i < kMagicalRecordImportMaximumAttributeFailoverDepth && value == nil; i++) { - attributeName = [NSString stringWithFormat:@"%@.%u", kMagicalRecordImportAttributeKeyMapKey, i]; + attributeName = [NSString stringWithFormat:@"%@.%lu", kMagicalRecordImportAttributeKeyMapKey, (unsigned long)i]; lookupKey = [[attributeInfo userInfo] valueForKey:attributeName]; if (lookupKey == nil) { diff --git a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m index d466291..8bd7a8e 100644 --- a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m +++ b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m @@ -118,7 +118,7 @@ static NSUInteger defaultBatchSize = kMagicalRecordDefaultBatchSize; } else { - MRLog(@"Property '%@' not found in %u properties for %@", propertyName, [propDict count], NSStringFromClass(self)); + MRLog(@"Property '%@' not found in %lx properties for %@", propertyName, (unsigned long)[propDict count], NSStringFromClass(self)); } } } diff --git a/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalRecord.m b/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalRecord.m index c1e4b32..abc8e4f 100644 --- a/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalRecord.m +++ b/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext+MagicalRecord.m @@ -172,7 +172,7 @@ static id iCloudSetupNotificationObserver = nil; NSManagedObjectContext *context = (NSManagedObjectContext *)notification.object; if (context.insertedObjects.count > 0) { NSArray *insertedObjects = [[context insertedObjects] allObjects]; - MRLog(@"Context %@ is about to save. Obtaining permanent IDs for new %d inserted objects", [context MR_description], insertedObjects.count); + MRLog(@"Context %@ is about to save. Obtaining permanent IDs for new %lu inserted objects", [context MR_description], (unsigned long)[insertedObjects count]); NSError *error; [context obtainPermanentIDsForObjects:insertedObjects error:&error]; [MagicalRecord handleErrors:error];