Invalid Code Signing Entitlements error in iOS Package Distribution through VS while publishing a new version of app

Shantimohan Elchuri 721 Reputation points
2021-09-02T16:46:16.583+00:00

I am trying to publish an version update to an app. In VS after archiving I tried to Distribute to AppStore. After entering Apple ID and App specific password I am getting the following error:

128760-01-value-dev-in-icloud-container-key.png

I don't find any key with value "Development" in the Entitlements.plist. I also tried removing it from the Custom Entitlements in the Bundle Signing properties. That didn't work.

I am using the same Certificate and Profile that was used to publish the previous version except that I added iCloud capability to App ID after creating a new iCloud Container. There was no option anywhere while creating the container. The certificate used is set for Distribution and not for Development.

iCloud access worked without any issue in Debug mode on simulators as well as on device.

Developer technologies .NET Xamarin
{count} votes

Accepted answer
  1. Shantimohan Elchuri 721 Reputation points
    2021-09-03T16:14:16.847+00:00

    I did what is mentioned in the first two links. Thus,

    1. 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
    2. 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...


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.