【发布时间】:2020-03-09 14:39:30
【问题描述】:
我在使用 HealthKit 的仅限 Apple Watch 的应用程序时遇到了一个令人困惑的问题。由于 info.plist 中缺少 NSHealthShareUsageDescription 和 NSHealthUpdateUsageDescription 键,我在上传到 App Store Connect 时不断收到 Binary Rejected。我的 info.plist 中有这些密钥,并且已验证它们与我以前使用 Helathkit 并已成功上传的 iOS 应用程序相同。这是仅限 WatchOS 应用程序的问题吗?
【问题讨论】:
-
建议检查是否使用了正确的
info.plist。还要检查主项目的info.plist。或者您是否使用具有不同 info.plist 的多个目标(模式)? -
我相信这是正确的。有两个 info.plist。上面显示的是扩展的 Plist。另一个是用于 WatchKit 应用程序 如果我将这些密钥放入另一个 Plist(watchkit 应用程序之一),那么在我上传到 App Store Connect 之前我会收到一个错误,告诉我密钥无效。
标签: ios swift xcode app-store-connect watchos