It works, thank you.
What I have done:
(1) Add "REGISTER_APP_GROUPS" to the main app and widget targets
(2) Remove "App Groups" capabilities from the two targets
(3) Add "App Groups" capability to the two targets and add a NEW group name
(4) Close XCode
(5) Delete all files from ~/Library/Developer/Xcode/UserData/Provisioning Profiles
(6) Open Xcode -> Clean -> Archive -> Upload
Topic:
Code Signing
SubTopic:
Entitlements
Tags: