I'm experiencing this error, which weird because it worked for me 2 weeks ago on the XCode Beta with Monterey Beta, but then began crashing last week. I have tried re-downloading the XCode Beta, redownloading the Command Line App https://developer.apple.com/documentation/realitykit/creating_a_photogrammetry_command-line_app
Here is the error:
yld[1560]: Symbol not found: _$s17RealityFoundation21PhotogrammetrySessionC7OutputsV8IteratorVs05AsyncF8ProtocolAAMc Referenced from: /Users/myusername/Library/Developer/Xcode/DerivedData/HelloPhotogrammetry-hhevgwzwcifpwiauxzsuqwzkagve/Build/Products/Debug/HelloPhotogrammetry Expected in: /System/Library/Frameworks/RealityFoundation.framework/Versions/A/RealityFoundation