Skip to content

Class X is implemented in both A and B. One of the two will be used. Which one is undefined. #4782

@egesucu

Description

@egesucu

New Issue Checklist

Describe the bug

This will happen when you analyze the code with "swiftlint" or "swiftlint analyze". It will not break the build or give any crashes.

Complete output when running SwiftLint, including the stack trace and command used
objc[36713]: Class _TtC11SwiftSyntax16BumpPtrAllocator is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140c0d0) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1051847c8). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax35IncrementalParseReusedNodeCollector is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140c288) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105184978). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax26IncrementalParseTransition is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140c320) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105184a10). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax23SourceLocationConverter is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140e188) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105184b50). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax11SyntaxArena is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140e328) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105184d70). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax18ParsingSyntaxArena is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x10140e428) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105184e70). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax16SyntaxAnyVisitor is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1014107d8) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1051876f8). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax14SyntaxRewriter is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x101414410) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x10518b7e8). One of the two will be used. Which one is undefined.
objc[36713]: Class _TtC11SwiftSyntax13SyntaxVisitor is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x101415720) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x10518c9d0). One of the two will be used. Which one is undefined.
...
Done linting! Found 0 violations, 0 serious in 26 files.

Environment

  • SwiftLint version: 0.50.3

  • Installation method used: Homebrew

  • Paste your configuration file: none

  • Are you using nested configurations? -none

  • Which Xcode version are you using?
    Xcode 14.3
    Build version 14E5197f

  • Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
    to quickly test if your example is really demonstrating the issue. If your example is more
    complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.

objc[37151]: Class _TtC11SwiftSyntax16BumpPtrAllocator is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b40d0) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076ac7c8). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax35IncrementalParseReusedNodeCollector is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b4288) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076ac978). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax26IncrementalParseTransition is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b4320) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076aca10). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax23SourceLocationConverter is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b6188) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076acb50). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax11SyntaxArena is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b6328) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076acd70). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax18ParsingSyntaxArena is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b6428) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076ace70). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax16SyntaxAnyVisitor is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039b87d8) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076af6f8). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax14SyntaxRewriter is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039bc410) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076b37e8). One of the two will be used. Which one is undefined.
objc[37151]: Class _TtC11SwiftSyntax13SyntaxVisitor is implemented in both /opt/homebrew/Cellar/swiftlint/0.50.3/bin/swiftlint (0x1039bd720) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x1076b49d0). One of the two will be used. Which one is undefined.
The `anyobject_protocol` rule is now deprecated and will be completely removed in a future release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions