Cannot find type 'PhotogrammetrySession' in scope

I'm on Mac OS 12 (Monterey) and Xcode 13 but it still get the error "Cannot find type 'PhotogrammetrySession' in scope"

I tried restarting Xcode, tried restarting the Mac. But I still get the error. I have imported "RealityKit".

I'm trying to run the HelloPhotogrammetry code provided by Apple.

Replies

Hi, please make sure you are running on the most recent macOS 12 and Xcode 13 builds. Also, try redownloading the sample project here, I believe some changes were made to address the bug you are referencing. If that does not resolve your issue, please file a bug report on Feedback Assistant.

  • We are also having this issue on the Xcode Release build.

    A re-download like you suggested didn't change anything. Your code samples throw the same errors:

    CreatingAPhotogrammetryCommandLineApp/HelloPhotogrammetry/main.swift:18:8: Type 'HelloPhotogrammetry' does not conform to protocol 'Decodable' Cannot find type 'PhotogrammetrySession' in scope

  • @lanxinger if you are still seeing this in the most recent updates, please file a bug report on Feedback Assistant, this was an issue a few betas ago but should've been resolved.

  • thank you. filed a bug report.