NSTextAttachment.character symbol suddenly not available anymore resulting in compiler error

I published the latest update of my AppKit app in September with macOS 26.0.

I just wanted to create a new update, but compiling on macOS 26.4 now fails because of the symbol NSTextAttachment.character which is referenced in my code. The error is

Type 'NSTextAttachment' has no member 'character'

I've never experienced before that a symbol suddenly is not available anymore without even a deprecation notice from one OS release to the next, let alone a minor release. Is this a bug in macOS or Xcode, or should I start worrying about symbols becoming unavailable anytime?

Do you have a feedback report yet? If not, would you mind to file one and share your report ID here? Thanks.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

FB22393546

I've also reported this as #FB22447417. This seems like a bizarre regression. You now have to use NSAttachmentCharacter (the same as in Objective-C), but NSAttachmentCharacter was renamed to NSTextAttachment.character in Swift 4.2.

NSTextAttachment.character symbol suddenly not available anymore resulting in compiler error
 
 
Q