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

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

问题描述

我今天尝试在真正的Apple Watch上调试我的WatchKit应用程序。点击Xcode中的Debug按钮后,主iPhone应用程序安装正确,但Apple Watch仅显示消息安装xxx失败,错误:应用程序验证失败。 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.

可以在Xcode的设备窗口中获取UDID。配对后,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天全站免登陆