【问题标题】:iOS Watch app fails to install - WatchKit 1.0 apps are no longer installable on this watchOS versioniOS Watch 应用程序安装失败 - WatchKit 1.0 应用程序无法再安装在此 watchOS 版本上
【发布时间】:2020-08-21 08:17:24
【问题描述】:

我已为现有 iOS 应用添加了 Watch App 目标,但在手表模拟器上安装它时遇到问题。此消息总是失败

This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Could not install at this time.
Recovery Suggestion: WatchKit 1.0 apps are no longer installable on this watchOS version.
--
WatchKit 1.0 apps are no longer installable on this watchOS version.
Domain: MIInstallerErrorDomain
Code: 133
User Info: {
    FunctionName = "-[MIInstallableBundle _isValidWatchKitApp:withVersion:installableSigningInfo:error:]";
    LegacyErrorString = UnsupportedWatchKitVersion;
    SourceFileLine = 683;
}
--


System Information

macOS Version 10.15.4 (Build 19E287)
Xcode 11.4.1 (16137)

我尝试创建新的示例应用程序,它工作正常。我比较了两个手表应用程序设置,它们是相同的。知道可能是什么问题吗?谢谢

【问题讨论】:

  • 现有手表目标的手表 SDK 是 1.0。改变这个。
  • @Paulw11 不是。我检查了它,甚至没有使用 watch sdk 1 的选项。

标签: ios watchkit xcode11.4


【解决方案1】:

找到解决方案,与错误信息完全无关。

我将 Build settings 中的 Valid architectures 更改为 $(ARCHS_STANDARD),用于所有目标。

【讨论】:

  • 我在相同的 Xcode 版本中遇到了同样的问题,但更改此设置对我没有帮助。我有多个平台目标,iOS/tvOS/watchOS。所有其他安装正常。观看应用程序构建,但在 sim 上安装时显示此错误。尝试针对 watchOS 6.0 和 6.2
  • 更新:修复!对我来说,我不得不取消选中“Watch App Target -> Embed App Extensions -> 仅在安装时复制,然后它就可以工作了
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-07-05
  • 1970-01-01
  • 2021-12-05
  • 2015-06-09
  • 1970-01-01
  • 2017-10-22
  • 1970-01-01
相关资源
最近更新 更多