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

Bli*_*lip 6 xcode apple-watch watchkit swiftui

我有 App Store 中的最新版本 Xcode 12。在我现有的 iOS 项目中,我添加了一个 WatchKit 应用程序,部署目标为 watchOS 7.0。但是,当我尝试在模拟器上运行手表应用程序时,它会尝试安装,然后在警报中给出以下错误:

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

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

以下是错误详细信息:

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)
Run Code Online (Sandbox Code Playgroud)

我有另一个 iOS 项目,其中有一个运行良好的 WatchKit 应用程序。

您也有这个问题或者知道如何解决吗?任何帮助表示赞赏。