在真正的 Apple Watch 上调试:应用程序验证失败 [英] Debug on real Apple Watch: Application Verification Failed

查看:32
本文介绍了在真正的 Apple Watch 上调试:应用程序验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天尝试在真正的 Apple Watch 上调试我的 WatchKit 应用程序.在 Xcode 中点击 Debug 按钮后,主 iPhone 应用程序已正确安装,但 Apple Watch 仅显示消息 Failed to install xxx, error: Application Verification Failed.未安装 WatchKit 应用.

I tried to debug my WatchKit app on a real Apple Watch today. After hitting the Debug button in Xcode, the main iPhone app was installed properly, but the Apple Watch only displayed the message Failed to install xxx, error: Application Verification Failed. The WatchKit app doesn't install.

我知道这一点:WatchKit 应用程序因无法安装"而被拒绝; ,但它没有帮助,因为我的 Xcode 项目文件没问题.

I was aware of this: WatchKit App Rejected for "Failing to Install" , but it didn't help because my Xcode project file is alright.

如何在真正的 Apple Watch 上进行调试?

How to make debug work on a real Apple Watch?

推荐答案

事实证明,您还必须将 Apple Watch 的 UDID 添加到 Apple Developer Portal,并更新您的开发配置文件包含此 UDID.

It turns out you also have to add the UDID of the Apple Watch to the Apple Developer Portal, and update your Development provisioning profile to include this UDID.

UDID 可以在 Xcode 的 Devices 窗口中获取.配对后,Apple Watch 的信息会自动显示在您 iPhone 的信息下方.

The UDID can be obtained in Devices window of Xcode. After pairing, the info of the Apple Watch will automatically display below the info of your iPhone.

在撰写本文时,这似乎没有任何记录,Apple Watch 上的错误消息也不是特别有用.所以我希望这个试错课能让你省去一些麻烦.

At the time of writing, this seems to be documented nowhere, and the error message on the Apple Watch wasn't particularly helpful. So I wish this try-and-error lesson would save you some hassle.

这篇关于在真正的 Apple Watch 上调试:应用程序验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆