Issue with icloud Kit entitlements

Hello,

I'm unable to distribute my app to appstore through Visual Studio -> Archive since I add iCloud kit feature
Here is the the error message I got:

App Store bundle validation failed for archive xxx
"altool" exited with code 67
Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'Development' for key 'com.apple.developer.icloud-container-environment' in 'Payload/xxx' is not supported
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.icloud-container-identifiers</key>
    <array>
        <string>iCloud.$(CFBundleIdentifier)</string>
    </array>
    <key>com.apple.developer.icloud-services</key>
    <array>
        <string>CloudKit</string>
        <string>CloudDocuments</string>
    </array>
    <key>com.apple.developer.ubiquity-kvstore-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
</dict>
</plist>

The provisionning profile is set on apple with right bundle identifier and contains icloud containter with icloud.com.xxx.xxx.

I tried adding com.apple.developer.icloud-container-environment key with production value on entitlements.plist but the error message still the same.
I also tried remove all provisionning profiles from xcode and download new ones but no luck ...
The error message is not clear and don't help me finding what's wrong with my project.

Have you guys have an idea ?

VS version 16.3.10
XForms version 4.2.0.815419
XCode version 11.2.1

Sign In or Register to comment.