Actool failed to build certain pdfs in xcassets

What version of Xcode are you using?

Xcode Version 14.0 (14A309)

Did you see an error message?

Yes

What was the error?

CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more. /* com.apple.actool.compilation-results */

Please describe the issue:

After compiling the xcasset with certain pdfs, actool will produce the info “CoreGraphics PDF has logged an error”.

The UIImage for the pdf fails rendering.

Please list the steps you took to reproduce the issue:

  1. Create a new iOS project
  2. Drag the pdf(attachment named ***.pdf) in the xcasset
  3. Build
  4. Check the compile log

What did you expect to happen?

The pdf image renders as expected.

Attachment

https://github.com/PhilCai1993/Xcode14_PDF_Xcassets_Issue

The Developer Forums is not an official support channel; issues like this need to be filed through Feedback Assistant so the right teams can investigate the details.

Actool failed to build certain pdfs in xcassets
 
 
Q