应用程序无法安装

应用程序无法安装

本文介绍了iOS Watch 应用程序无法安装 - WatchKit 1.0 应用程序不再可安装在此 watchOS 版本上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have added Watch App target for existing iOS app but I have problem to install it on watch simulator. It always fails with this message

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)

我尝试创建新的示例应用程序,并且运行良好.我比较了两个手表应用程序设置,它们是相同的.知道有什么问题吗?谢谢

I have tried to create new sample app and it works fine. I compared both watch apps settings and they are same. Any idea what can be issue? Thanks

推荐答案

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

Found solution, which is totally unrelated to error message.

我将构建设置中的有效架构更改为所有目标的$(ARCHS_STANDARD).

I changed Valid architectures in Build settings to $(ARCHS_STANDARD) for all targets.

这篇关于iOS Watch 应用程序无法安装 - WatchKit 1.0 应用程序不再可安装在此 watchOS 版本上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 03:54