It only happens on Objective-C and I reported to Apple about a month ago, but hasn't been fixed yet. You will need to create a Swift class for it in the meantime.
Topic:
App & System Services
SubTopic:
Core OS
Tags: