librelist archives

« back to archive

MailCore not building in Release configuration

MailCore not building in Release configuration

From:
Tae
Date:
2012-12-17 @ 15:31
Hi.

I cloned MailCore from github and did

xcodebuild -target MailCore -configuration Release build

and I get the following errors

======================
/.../mailcore/Source/CTXlistResult.m:36:21: error: inconsistent number
of instance variables specified
    NSMutableArray *_flags;
                    ^
/.../mailcore/Source/CTXlistResult.m:40:13: error: synthesized property
'name' must either be named the same as a compatible ivar or must
explicitly name an ivar
@synthesize name = _name;
            ^
/.../mailcore/Source/CTXlistResult.m:41:13: error: synthesized property
'flags' must either be named the same as a compatible ivar or must
explicitly name an ivar
@synthesize flags = _flags;
            ^
/Users/hat/Projects/ParAvion/mailcore/Source/CTXlistResult.m:61:6:
error: 'NSArray' may not respond to 'addObject:' [-Werror]
    [_flags addObject:flag];
     ^
4 errors generated.
=====================

In Debug configuration, however, it compiles without any complaint. Even
when I add an NSString* ivar, the same errors occur. Am I missing
something here?

Thanks in advance and best,
Tae