I did what is mentioned in the first two links. Thus,
- I set Signing Identity to Distribution (Automatic) and the Provisioning Profile to Automatic in Bundle Signing-Manual Provisioning as described in uploading-appipa-via-application-loader
- Then I added the Production value to the com.apple.developer.icloud-container-environment key in Entitlements.plist as described in cannot-distribute-development-app-to-testflight-due-to-icloud-component
Then the Distribute on Archive window of VS didn't produce any errors. But I don't see the binary build uploaded to my app page in AppStore Connect. Do I still have to upload the ipa manually?
PS: Updating to inform that it took some time for the upload to appear in AppStore Connect. So there are no more issues.... ThanQ...