我有来自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项目。
您是否也有此问题,或者知道如何解决?任何帮助表示赞赏。