swift-log: Xcode 12 fails to compile with swift-log as a dependency

Expected behavior

When importing logging and using the a custom LogHandler, the app builds successfully

Actual behavior

Screen Shot 2020-06-22 at 4 33 17 PM

Steps to reproduce

  1. Create a protocol that uses Logger
  2. Example
public protocol LogListener {
    var isEnabled: Bool { get set }
    var logLevel: Logger.Level { get set }
    func logMessage(_ logDetails: ATHLogHandler.LogDetails)
}
  1. App Will fail to compile
  2. ‘Logger’ is ambiguous for type lookup in this context

SwiftLog version/commit hash

Version: 1.2.0

Swift & OS version (output of swift --version && uname -a)

Swift 5.3 macOS 11

Other Notes

I know this is on beta software and you’re not required to support that anytime soon, but just wanted to put it out there.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Trying to create a project that reproduces this though.