0

I have iOS application build in UIKit with SwiftUI widget extension. Until now the archiving worked just fine. I've added App Group to share user defaults in following format: "group.MYTEAMID.sk.MYNAME.names". When I try to archive this project and send it to the App Store Connect I am getting following error:

...WidgetExtension:
error build: Command SetOwnerAndGroup failed with a nonzero exit code

When I build app locally or on simulator, there is no error at all. Any thoughts? Also, in console I have this log:

[User Defaults] Couldn't read values in CFPrefsPlistSource<0x281b7e480> (Domain: group.MYTEAM.sk.MYNAME.names, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
4
  • share user defaults from main app to widget is not working in ios16... I have just tested it in my application you should have to use coredata Commented Oct 21, 2022 at 17:14
  • Hmm, the app with widget is working as expected, just the process of archivation is always failing. Commented Oct 21, 2022 at 18:03
  • archive with arm64? Commented Oct 21, 2022 at 18:19
  • Yes, as always. Build before went without issues. Commented Oct 21, 2022 at 19:13

1 Answer 1

2

After restarting the Xcode and Mac, everything started to working. No mentioned errors, app is successfully archived. Well, the magic happens!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.