将iOS内部版本上传到应用中心时出现icloud授权错误

问题描述 投票:0回答:1

我遇到以下iCloud错误。

错误域= IDEFoundationErrorDomain代码= 1“ exportOptionsPlist错误对于关键的“ iCloudContainerEnvironment”:预期为{Development,生产},但没有提供任何价值”UserInfo = {NSLocalizedDescription = exportOptionsPlist密钥错误'iCloudContainerEnvironment':预期为{Development,生产},但未提供任何价值}

我拥有iCloud的以下权利。

<key>com.apple.developer.icloud-container-identifiers</key>
<array>
    <string>iCloud.$(CFBundleIdentifier)</string>
</array>

<key>com.apple.developer.icloud-container-development-container-identifiers</key>
<array>
    <string>iCloud.$(CFBundleIdentifier)</string>
</array>

我尝试将“ Development”和“ Production”作为字符串值而不是iCloud.$(CFBundleIdentifier)。但是,Xcode和应用程序中心给我一个错误,提示“配置文件”与权利值不匹配。

xcode react-native icloud entitlements visual-studio-app-center
1个回答
0
投票

我在Ionic上遇到了相同的错误,我这样解决了

ionic cordova build ios --prod --release -- --iCloudContainerEnvironment=Production

可能在react-native中,您也可以在构建时传递其他标志。

更多信息:

© www.soinside.com 2019 - 2024. All rights reserved.