Skip to content

Archived build failed (Catalyst only) with other library used swift-collections #3512

@marcuswu0814

Description

@marcuswu0814

Description

When archiving the test app, the process works fine for the iOS app but results in a compiler error when archiving for Catalyst.

Issue also opened at MetaCodable, not sure is this cause by macro package.

Checklist

  • I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior

Like archived iOS app, build/archived success

Actual behavior

Build failed, showing error like:

https://github.com/marcuswu0814/MetaCodableArchivedIssue/blob/main/CleanShot%202024-11-28%20at%[email protected]

Reproducing project

https://github.com/marcuswu0814/MetaCodableArchivedIssue

The Composable Architecture version information

1.16.1

Destination operating system

iOS 18

Xcode version information

Xcode 16.2 beta 2 (Also not work with Xcode 16.1)

Swift Compiler version information

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.4 clang-1600.0.30)

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