I have been running different tests with the new CiRawFilter class and it seems to work well for me on macOS 12.3.1 in a Playground in Xcode 13.3.1.
I tried the code with both a raw photo from my Canon Camera (CR2 format) and a raw photo from my iPhone 11 (DNG format). I do not have access to ProRaw photos, though.
BTW, I noticed that your rawFilter is not optional. Maybe this is the issue?
Here my code:
import Cocoa
import Foundation
import CoreImage
import SwiftUI
// Path to locally stored raw image, not ProRaw, from an iPhone 11
let rawimgpath = "/...path.../IMGAGE.dng"
let rawimgurl = URL(fileURLWithPath: rawimgpath)
// Initialising the CiRAWFilter with URL
let rawfilter = CIRAWFilter(imageURL: rawimgurl)
// Creating a CI Image
let rawimg = rawfilter?.outputImage
// Creating a CG Image
let context = CIContext()
let rawcgimg = context.createCGImage(rawimg!, from: rawimg!.extent)
let rawuiimg = Image(decorative: rawcgimg!, scale: 1.0)
// Printing the properties of the filter... this should also show your Gammut Mapping
let rawFltProps = rawfilter?.properties
// Printing the properties of the image...
let rawImgProps = rawimg?.properties
// This does not cause an error
let isgammutMappingEnabled = rawfilter?.isGamutMappingEnabled // Returns (Optional)true
// Note: The Ci rawfilter is always optional with the "?" !
PS: Please, use the "Code Block" feature in the editor for better readability of your code. Makes things a little easier ;-).