I downloaded Lumberjack today and attempted to compile using XCode 4.3.3, iOS5, Apple LLVM compiler 3.1.
I'm getting unexpected '@' in program errors on line 1045 of DDFileLogger.m, where it appears to be an array literal:
- (NSString *)description
{
return [@{@"filePath": self.filePath,
@"fileName": self.fileName,
@"fileAttributes": self.fileAttributes,
@"creationDate": self.creationDate,
@"modificationDate": self.modificationDate,
@"fileSize": @(self.fileSize),
@"age": @(self.age),
@"isArchived": @(self.isArchived)} description];
}
There are other errors as well where the literal syntax is used for ints.
My project is not ARC. So, I have followed the instructions to set the compiler flag for the Lumberjack files.
Based on what I have read, this literal syntax is introduced in Apple LLVM compiler 4.0. Or perhapse can be accessed by forcing the linker to include arclite. (
stackoverflow).
Is this correct, or is there something I am missing?
thanks!
Michael