Failed to recognize core graphic after update Xcode 13.1?

My code was lived well recently. But today after I update my Xcode 13.1.( It ask me to install some components and I always click yes.)

Then all code related to core graphic like this can't work now. Not only the code but also the constant like: kCGImagePropertyExifFlash is failed to be recognized too.

Does anybody know what happened?

 // Write Image
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef bitmapContext = CGBitmapContextCreate(
    pBuffer,
    imgInfo.nWidth,
    imgInfo.nHeight,
    8, // bitsPerComponent
    4*imgInfo.nWidth, // bytesPerRow
    colorSpace,
    kCGImageAlphaNoneSkipLast);

How long did you wait ?

It may take some time to update everything.

Try again in one hour.

Still got the same problem now -_-.....

At last I add additional import in my .mm file to fix this issue. But I don't know why I don't need to do this before Xcode update.

Failed to recognize core graphic after update Xcode 13.1?
 
 
Q