So to sum things up concretely and all in all, the required steps are:
Create an Apple Development Certificate.
Add the Freelancer into our Apple Account, with the role 'Developer'.
Forward the private key of the Apple Development Certificiate to the Freelancer, such that he can use it to develop the macOS App in XCode on his own machine.
When creating the new user, under the "Additional Resources" tab, I will have to tick "Access to Certificates, Identifiers & Profiles.", such that he can use the Apple Development Certificate.
Once the Freelancer's done, he should do Product > Archive and send me the resulting .xcarchive.
I create a Developer ID Certificate in my app store account for direct macOS distribution. I do not forward its private key to the Freelancer.
I import the obtained .xcarchive into my XCode organizer, and do Developer ID distribution, including eventual notarization etc., from there.
Topic:
Code Signing
SubTopic:
General
Tags: