Unable to launch RealityKit app with custom RealityComposerPro components from Xcode

Hi!
I have what is surely a very silly question. When I create a new Reality Composer Pro project, and link it with a new Xcode project, I'm able to add the default custom components (SampleSpinComponent) to entities in RCP, but I'm unable to run the project from Xcode. When running in Xcode, i get the following error:

dyld[36244]: Library not loaded: @rpath/RCPCustomComponents.framework/Versions/A/RCPCustomComponents
  Referenced from: <7A050659-45DF-334C-85E9-FEAD92F75E5A> /Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/Kuchmar.debug.dylib
  Reason: tried: '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (code signature in <CD663EB6-845F-3DEF-80CE-FEA515A6504E> '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (code signature in <CD663EB6-845F-3DEF-80CE-FEA515A6504E> '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/Frameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/PlugIns/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (code signature in <CD663EB6-845F-3DEF-80CE-FEA515A6504E> '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/Frameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/PlugIns/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/MacOS/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (code signature in <CD663EB6-845F-3DEF-80CE-FEA515A6504E> '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/PackageFrameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/Frameworks/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file), '/Users/adrianlorenzana/Library/Developer/Xcode/DerivedData/Kuchmar-eoadfldeleuovmhdhggtpykiqwut/Build/Products/Debug/Kuchmar.app/Contents/PlugIns/RCPCustomComponents.framework/Versions/A/RCPCustomComponents' (no such file)

I feel like I must be missing something obvious, any tips would be appreciated :)
-Adrian

Answered by adrianlorenzana in 919013022

Okay it looks like the solution was that the RCPCustomComponents framework was set to "Do Not Embed" instead of "Embed & Sign" for some reason, changing it allows me to run the app from Xcode.

Accepted Answer

Okay it looks like the solution was that the RCPCustomComponents framework was set to "Do Not Embed" instead of "Embed & Sign" for some reason, changing it allows me to run the app from Xcode.