Skip to content

Reality Composer pro package serialization incompatibility #275

Description

@Ansel7

Description

line 161 of UINavigationPath: fileprivate var elements: [Element] = []
is throwing this error: Unable to serialize this unknown type.
I created a Reality Composer pro project, it creates a swift package that it serializes to reduce the time to load things into memory. I imported another swift package that has the composable architecture as a dependency, when I try to build everything I get these errors:
Finished processSwiftFiles() with code incompatibility issues, failure
Failure creating schema - 'The operation couldn’t be completed. (realitytool.RKAssetsCustomComponentsSchemaHandler.DerivedDataError error 3.)'
and the above mentioned error from the UINavigationPath file.

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

I expected it to be compatible with the Reality Composer pros serialization procedure.

Actual behavior

No response

Steps to reproduce

  1. create a Reality Composer pro project
  2. create another swift package that has the composable architecture as a dependency
  3. import the second swift package into the Reality Composer pro project as a swift package dependency.
  4. build

SwiftUI Navigation version information

2.23

Destination operating system

.visionOS(.v2), .macOS(.v15), .iOS(.v18)

Xcode version information

Xcode 16.2

Swift Compiler version information

swift 6, swift-tools-version:6.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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