Skip to content

Conflicts between Module name and enum #8

@Pyonpyon17

Description

@Pyonpyon17

Hi,

I'm using this library in an SPM project and I then use xcodebuild to generate XCFrameworks.
The build does not succeed because of conflicts between the module name and the CBOR enum. The module is considered as the enum and this leads to errors like this :

error: 'CBORError' is not a member type of enum 'CBOR.CBOR'
9 | import _StringProcessing
10 | import _SwiftConcurrencyShims
11 | indirect public enum CBOR : Swift.Equatable, Swift.Sendable {
| - note: 'CBOR' declared here
12 | case unsignedInt(Swift.UInt64)
13 | case negativeInt(Swift.Int64)
:
110 | }
111 | extension CBOR.CBORError {
112 | public static func == (lhs: CBOR.CBORError, rhs: CBOR.CBORError) -> Swift.Bool
| - error: 'CBORError' is not a member type of enum 'CBOR.CBOR'
113 | }
114 | extension CBOR.CBOR : Swift.Encodable {

Can you rename the library ? Or do you know a bypass solution ?

Many thanks in advance

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