ios - 在启用 iCloud 的情况下提交应用程序 : is it possible? Apple:无效的代码签名权利

标签 ios app-store icloud key-value-store code-signing-entitlements

两个应用程序(例如 AppX 和 AppXLite)使用相同的 iCloud 键值存储和相同的商店标识符,并且在权利文件中我看到 $(TeamIdentifierPrefix)com.company.AppX

一切都可以在临时和调试版本中运行。但是当我尝试将 AppXLite 上传到应用商店时,出现错误:

Invalid Code Signing Entitlements - The signature for your app bundle contains entitlement values that are not supported. For the com.apple.developer.ubiquity-container-identifiers entitlement, the first value in the array must consist of the prefix provided by Apple in the provisioning profile followed by a bundle identifier suffix. The bundle identifier must match the bundle identifier for one of your apps or another app that you are permitted to use as the iCloud container identifier. Specifically, value "YYXXXXXXYY.com.company.AppX" for key "com.apple.developer.ubiquity-container-identifiers" in AppXLite is not supported.

同意这封信,但是一切都好:前缀,由 Apple 提供, bundle 标识符。如果不是,这在临时构建中将不起作用。但为什么他们说事情不对呢?

是的,我知道这里有很多答案,我阅读了它们。人们说,应该在配置门户的应用程序中禁用 iCloud 支持来解决这一问题。如果我这样做,我的应用程序将不再看到 iCloud,但这是关键功能之一!

我有一个想法,我应该先上传 AppX,然后再上传 AppXLite,因为这两个应用程序都使用 AppX 的捆绑 ID 作为商店标识符。但我已经在配置门户上添加了这两个应用程序,因此应用程序商店应该知道“我的一个应用程序的 bundle 标识符”,正如苹果在信中所述。

有人有将支持 iCloud 的应用程序上传到 Appstore 的经验吗?

最佳答案

如果您遇到同样的情况:

  1. 删除配置门户中的所有配置文件
  2. 删除 Xcode 和设备中的所有配置文件
  3. 重新创建所有需要的配置文件(我已为每个配置文件创建了 dev、adhoc 和 appstore)
  4. 手动下载它们并拖至 Xcode。
  5. 清理并重建所有应用
  6. 提交第一个应用,其捆绑 ID 在它们之间共享,作为 iCloud 的商店标识符。
  7. 提交所有其余应用。

结果:一切都处于“等待审核”状态。

关于ios - 在启用 iCloud 的情况下提交应用程序 : is it possible? Apple:无效的代码签名权利,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13501032/

相关文章:

ios - 自定义 UISlider 无图像

ios - X.01 中的 iPhone 应用程序版本号

ios - UbiquityIdentityToken 返回 Null

ios - 替代 iOS 10.0 核心数据中的 NSPersistentStoreUbiquitousContentNameKey 键

core-data - UIManagedDocument - 如何处理 UIDocumentStateSavingError?

php - 将数据从服务器发送到 iPhone 应用程序

ios - 设置 rowHeight 等于 UITableViewAutomaticDimension 不起作用

iphone - iPhone发行-多种设备-非App Store

ios - 请求失败 : unacceptable content-type: text/html using AFNetworking 2. 0

ios - 苹果为何在压缩.ipa之前先对其进行加密?