Issues with NSBundle failed, VTParavirtualization, IOServiceMatchingFailed, AppleM2ScalerParavirtDriver

I'm building an app in Apple Virtualization but I can no longer generate images after updating to macOS Sequoia. It's a simple function that will create thumbnails in either HEIF or JPEG, but neither work now.

I get these warnings every time:

CGImageProviderGetContentHeadroom: Bad headroom value 0.000000 for SDR, returning 1.0

NSBundle file:///System/Library/PrivateFrameworks/MetalTools.framework/ principal class is nil because all fallbacks have failed

IOServiceMatchingfailed for: AppleM2ScalerParavirtDriver <<<< VTParavirtualization >>>> VTParavirtualizationReplyClerkWaitForReply signalled err=-19092 (kVTParavirtualizationTimeoutErr) (timeout waiting for pending reply) at VTParavirtualization. c: 3804

writeImageAtIndex:1077: *** CMPhotoCompressionSessionAddImage: err = unknown error [-19092] (codec: 'hvc1')

The operation couldn't be completed. (CINonLocalizedDescriptionKey error 3.)

Will this be resolved in Xcode 16 or macOS Sequoia?

I'm building an app in Apple Virtualization

Can you clarify what you mean by this? Does it mean you’re running Xcode within a virtual machine? If so, are you seeing this problem at build time? Or when you go to run your build app?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, I am using Xcode 16 beta 3 on macOS Sequoia beta 3 on both host and guest in the VM. The issue is present when I ran my app in UTM or Apple’s virtualization sample project. I see this issue appear when I run my app, specially whenever it creates thumbnails.

It happens when I use writeHEIFRepresentation and writeJPEGRepresentation, and I’ve tried other ways like ImageIO and AVFoundation which fails the same way.

I recently discovered that setting useSoftwareRenderer to true for CIContext at least let me write JPEG images but not HEIF.

I'm experiencing the same issue. Maybe it relates with my case. Firstly, this is my environmet:

  • iOS 18 Public Beta
  • Xcode 15.1

How to reproduce:

  • Load images using PHPickerViewController (in my case, I pick 500 images)
  • Convert loaded images to Data by using https://developer.apple.com/documentation/uikit/uiimage/1624115-jpegdata
  • Loaded images data will be uploaded.
  • When uploading process running, some images cannot be uploaded 414/500 photos are uploaded. 86 photos failed.
  • When uploading error, there is warning in debug console:

CGImageProviderGetContentHeadroom: Bad headroom value 0.000000 for SDR, returning 1.0

another issue reported by other developer: https://stackoverflow.com/questions/78760760/image-upload-fails-with-error-invalid-image-data

Issues with NSBundle failed, VTParavirtualization, IOServiceMatchingFailed, AppleM2ScalerParavirtDriver
 
 
Q