No team found in the archive while - macOS direct distribution

Hi,

I've created a macOS app and I would like to distribute it outside the App Store.

When I'm doing: Product -> Archive -> Distribute App -> Direct Distribution, I'm getting the following error:

No Team Found in Archive. 

Use the Signing & Capabilities editor to assign a team to the targets and build a new archive.

However in the "Signing & Capabilities" editor, I selected my personal team (<My Name & Surname> (Personal team)". The option "automatically manage signing" is enabled. Signing certificate is set to "sign to run locally".

What is incorrect? Why Xcode cannot find the team even though it is set?

Thanks for lot for any guidance!

Did you find a solution? I'm getting the same message and I've done this many times for this app in the past.

Hmm - it seems that changing Signing Certificate to Development works in my situation

Untick Automatically Manage Signing and re-enable it again works for me.

Nothing works for me.

One day Deleting derived data and Clean build folder, re opening xcode and creating new archive worked.

Next time when i tried to create build same error occured.

Any suggestions?

I clicked on the custom option and it let me manually select the team

No team found in the archive while - macOS direct distribution
 
 
Q