Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaLumberjackSwift does not compile. Issue with creating DDLogMessage #422

Closed
mowens opened this issue Dec 17, 2014 · 1 comment
Closed
Labels

Comments

@mowens
Copy link

mowens commented Dec 17, 2014

Unable to compile the CocoaLumberjackSwift framework due to issues with the way the SwiftMacro creates the DDLogMessage:
screen shot 2014-12-16 at 10 37 19 pm

/Users/mikeowens/Desktop/github/CocoaLumberjack/Classes/CocoaLumberjack.swift:67:19: Could not find member 'CopyFile'

Original error with no changes cannot file the .CopyFile or .CopyFunction. Prefixed both classes with DDLogMessageOptions but compiler still complains about the mask:
screen shot 2014-12-16 at 10 37 47 pm

/Users/mikeowens/Desktop/github/CocoaLumberjack/Classes/CocoaLumberjack.swift:67:19: Cannot invoke '|' with an argument list of type '(message: String, level: DDLogLevel, flag: DDLogFlag, context: UInt, file: String, function: String, line: UInt, tag: AnyObject?, options: $T11, timestamp: NilLiteralConvertible)'

Moving the mask to a local constant still a no go:
screen shot 2014-12-16 at 10 38 43 pm

/Users/mikeowens/Desktop/github/CocoaLumberjack/Classes/CocoaLumberjack.swift:68:22: Cannot invoke 'init' with an argument list of type '(message: String, level: DDLogLevel, flag: DDLogFlag, context: UInt, file: String, function: String, line: UInt, tag: AnyObject?, options: DDLogMessageOptions, timestamp: NilLiteralConvertible)'

Is this currently expected? Based on the comments on #383 it would appear that the iOSSwift demo project should be building. Any thoughts?

@bpoplauschi
Copy link
Member

This should be fixed by #437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants