Thanks @satcol's sharing. I confirm that linking and embedding XcodeKit framework in the extension target works.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: