错误 ITMS-90046:不支持键 'com.apple.developer.icloud-container-environment' 的值 'Development'

ERROR ITMS-90046: value 'Development' for key 'com.apple.developer.icloud-container-environment' is not supported

我收到以下错误:

ERROR ITMS-90046: "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/AppName.iOS.app/AppName.iOS' is not supported."

"Development" 甚至不在 entitlements.plist 中。虽然在字符串数组中有 iCloud 认证的名称(这在之前的上传中有效,我不知道是什么导致它中断)。我也试过删除所有认证和规定并重做。没变化。

我也尝试了以下无济于事:

https://forums.xamarin.com/discussion/48831/tinyurl.com/oqbw7ra

https://forums.xamarin.com/discussion/58051/ios-entitlement-error-90046

建议?

编辑:

<?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.networking.wifi-info</key>
    <true/>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)com.PrivateAppName</string>
    </array>
    <key>com.apple.developer.icloud-container-identifiers</key>
    <array>
        <string>iCloud.com.PrivateAppName</string>
    </array>
    <key>com.apple.developer.ubiquity-kvstore-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
</dict>
</plist>

最终删除了 iCloud,因为我找到了一种不使用它的方法。我改用 secure-storage and preferences 。请注意,用于存储它们的密钥必须包含应用程序标识符,无论出于何种原因,否则它并不总是从设备(phone、平板电脑等)中获取它。