本文介绍了WatchOS 2:“无法安装Watch App" “启动'TestApp WatchKit App Extension时出错"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次尝试在Xcode 7 beta 4中安装watchOS 2应用程序时,我都会在iOS上收到AlertView弹出错误:

I am getting a AlertView popup error on iOS every time I try to install a watchOS 2 app in Xcode 7 beta 4:

iPhone上已安装了TestApp,但Apple Watch的TestApp应用当前不可用.

TestApp is installed on your iPhone, but the TestApp app for Apple Watch is currently unavailable.

我也尝试通过Apple Watch iOS应用程序安装watchOS应用程序,但出现相同的错误.当我尝试运行watchOS目标时,我得到了:

I've also tried installing the watchOS app through the Apple Watch iOS app, but I get the same error. And when I try to run the watchOS target, I get this:

安装错误.检查iPhone控制台以了解更多详细信息."

Installation error. Check the iPhone console for more details."

我检查了iPhone控制台,那里没有其他详细信息.

I checked the iPhone console and no additional details are there.

我已经重新安装了Xcode,删除并重新添加了所有模拟器,重置了模拟器内容&设置...没有一个起作用.我还创建了一个全新的项目.这是在模拟器中以及运行iOS 9 beta 4和watchOS 2 beta 4的物理设备/手表上发生的.

I've reinstalled Xcode, deleted and re-added all simulators, reset simulator content & settings...none of which has worked. I also created a completely new project. This is occurring in the simulator and on a physical device/watch running iOS 9 beta 4 and watchOS 2 beta 4.

有人找到了解决方案或解决方法吗?

Has anyone figured out a fix or workaround for this?

谢谢!

推荐答案

在浏览设备系统日志时,我发现了自己的问题:

Looking through the device system logs, I found my issue:

Jul 26 18:05:14 MacBook-Pro companionappd[22461]: (Error) WatchKit: validateWatchKitApplicationInfoDictionary, invalid Info.plist key 'NSAppTransportSecurity'

我在watchOS应用程序info.plist和watchOS扩展名info.plist上都设置了应用程序传输安全密钥.只能在扩展名上设置它.

I had an App Transport Security key set on both the watchOS app info.plist and the watchOS extension info.plist. It should only be set on the extension.

这篇关于WatchOS 2:“无法安装Watch App" “启动'TestApp WatchKit App Extension时出错"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 09:48