Having an issue with using a custom component with Reality Composer Pro

We have a project which is currently being built as a XCFramework.

The framework contains a custom component to be used with entities in Reality Composer Pro.

I have tried to se set the RCP Package.swift file to reference the framework package for the in the dependancies.

Nothing that I do with the folder path to reference the code is working.

Do I need to change the project to be using Swift source code instead of a XCFramework?

The component needs to be in the framework as there is a class in the framework that works directly with the custom compoent.

I am able to reference the XCFramework as a Swift Package with other projects.

I was typing up the original post over a very slow internet connection so their some wonky grammar.

I have been modifying the Package.swift file for the Reality Kit project & I have been using relative paths but it does not work for some reason.

let package = Package(
name: "RealityKitContent",
platforms: [
.visionOS(.v2),
.macOS(.v15),
.iOS(.v18)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "RealityKitContent",
targets: ["RealityKitContent"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "RealityKitContent",
dependencies: []),
]
)

I tried setting a path like

dependencies: [
.package(path: "../../../../MyFramework"),
],
targets: [
.target(
name: "RealityKitContent",
dependencies: [
.product(name: "MyFramework", package: "MyFramework")
]),
]

At this time, the Swift package Framework is being referenced as a local package. Eventually, there will be a public GitHub repo.

Having an issue with using a custom component with Reality Composer Pro
 
 
Q