Internal PDF links stop working on iOS 27 / macOS 27 beta — every link opens the first page

On iOS 27 beta / Xcode 27.0, PDFDocument.write(to:) no longer serializes destinations for link annotations that are created at runtime. The annotation and its PDFActionGoTo action are both written, but the destination's page reference is not, so every internal link is dead.

This worked correctly on iOS 26. PDFs generated on iOS 26 still navigate correctly; the same code on iOS 27 beta produces PDFs whose links are all dead.

Internal PDF links stop working on iOS 27 / macOS 27 beta — every link opens the first page
 
 
Q