Hello. I've encountered a pretty strange issue with Xcode. I have an app published on the App Store and I've released several updates in the past few months. Some days ago, I increased the minimum iOS deployment target from 14.0 to 15.0 and suddenly I was unable to build an archive to distribute on App Store Connect. Xcode successfully built the archive, the archive file was in Library->Developer->Xcode->Archives but the Organizer didn't show it. If I tried to open the archive file from Finder, it failed giving the error "The archive could not be installed. The archive may be corrupt or unreadable". So, I discarded the changes about the iOS deployment target and I was able again to build archives.
Now, I've added widget extension to the project, and the issue came back. I cannot build any archives. I've tried doing it on Xcode 14 Beta, Xcode 14 RC and Xcode 14 Stable. I've tried doing it on a different Macbook too. Still no luck.
I would really appreciate some help.