ImageCaptureCore ICCameraDevice mediaFiles dont work

func deviceDidBecomeReady(withCompleteContentCatalog device: ICCameraDevice) {
    print("deviceDidBecomeReady", device.mediaFiles?.count)
}

Mac studio M1 macos app or iphone 15 pro ios app device.mediaFiles is empty

im add

Photos Library Entitlement.

com.apple.security.device.usb

NSCameraUsageDescription

from:https://developer.apple.com/documentation/imagecapturecore

sign is develpment

camera is ILCE-7RM4A (snoy)

other 3rd apps connect cmaera and download files is right

Camera access authorized ILCE-7RM4A ICCameraDeviceCanTakePicture Optional("ICCameraDeviceCanAcceptPTPCommands") requestOpenSession () didOpenSessionWithError nil deviceDidBecomeReady Optional(0) ["ICCameraDeviceCanAcceptPTPCommands"]

func checkCameraAuthorization() { let cameraAuthStatus = AVCaptureDevice.authorizationStatus(for: .video)

    switch cameraAuthStatus {
    case .authorized:
      
        print("Camera access authorized")
    case .notDetermined:
  
        AVCaptureDevice.requestAccess(for: .video) { granted in
            if granted {
  
                print("Camera access granted")
            } else {
           
                print("Camera access denied")
            }
        }
    case .denied, .restricted:
     
        print("Camera access previously denied or restricted")
    @unknown default:
        fatalError("Unknown camera authorization status")
    }
}

override init() {

    self.deviceBrowser = ICDeviceBrowser();
    super.init()
    
    checkCameraAuthorization();
    
    
    self.deviceBrowser.delegate = self;
        // self.deviceBrowser.browsedDeviceTypeMask = .camera
    self.deviceBrowser.start();
   
}
ImageCaptureCore ICCameraDevice mediaFiles dont work
 
 
Q