无法安装Watch app-无法在此watchOS版本上安装WatchKit 1.0应用

问题描述

我有来自App Store的最新版本Xcode 12。在现有的iOS项目中,我添加了一个WatchKit应用,其部署目标为watchOS 7.0。但是,当我尝试在模拟器上运行watch应用时,它会尝试安装,然后在警报中显示此错误:

目前无法安装此应用。
无法安装在 这次。 WatchKit 1.0应用程序不再可在此安装 watchOS版本。

我不知道导致它发出此错误的目标出了什么问题。如前所述,该应用程序的部署目标是watchOS 7,该应用程序使用SwiftUI。我也无法在SwiftUI上预览,因为它给了我同样的错误,提示无法安装。我尝试了this answer,但根本不起作用。

以下是错误详细信息:

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 = 698;
}
--


System Information

macOS Version 11.0 (Build 20A5374g)
Xcode 12.0 (17219)

我还有一个运行WatchKit应用程序的iOS项目。

您是否也有此问题,或者知道如何解决?任何帮助表示赞赏。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...