CloudKit capabilities and app signing in Xojo

Was anybody able to get CloudKit working for the outside Mac App store apps (CloudKit API isn’t limit to App Store apps only)?
I was trying to sign in terminal and with help of App Wrapper 4, but the app always crashes on launch when I add to entitlements:

System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace CODESIGNING, Code 0x1

P.S. Xojo, we really need your already existing for iOS projects Capabilities and Signing options to macOS application also!

I would like to say thank you to Christian and Sam for their help and updated versions of MBS plugins and App Wrapper! CloudKit framework now can be used with Xojo!

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.