无法在带有Xcode 6.2的iOS 8.1模拟器上使用WatchKit Extension安装App [英] Can't Install App with WatchKit Extension on iOS 8.1 Simulator with Xcode 6.2

查看:439
本文介绍了无法在带有Xcode 6.2的iOS 8.1模拟器上使用WatchKit Extension安装App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有iOS iOS部署目标的应用程序,我添加了一个WatchKit目标。正如预期的那样, WatchKit 扩展的iOS部署目标为8.2。当我在iOS 8.2模拟器上运行主应用程序时,一切都按预期工作。但是,如果我尝试在iOS 8.1模拟器上运行它,Xcode会报告:无法完成操作。 (LaunchServicesError错误0。)

I have an app with an iOS Deployment Target of iOS 7.0, and I've added a WatchKit target. As expected, the WatchKit Extension has an iOS Deployment Target of 8.2. When I run the primary app on the iOS 8.2 simulator, everything works as-expected. However, if I try to run it on the iOS 8.1 simulator, Xcode reports: The operation couldn’t be completed. (LaunchServicesError error 0.)

CoreSimulator.log文件包含以下消息:


com.apple.dt.Xcode [12181]:错误Domain = LaunchServicesError Code = 0操作无法完成。(LaunchServicesError错误0) UserInfo = 0x7ff46e2dc980 {Error = AppexBundleUnknownExtensionPointIdentifier,ErrorDescription = Appex bundle at /Users//Library/Developer/CoreSimulator/Devices//data/Library/Caches/com.apple.mobile.installd.staging/temp.xmo2ks/extracted/InstallBug具有id com..InstallBug.watchkitextension的.app / PlugIns / InstallBug WatchKit Extension.appex为其Info.plist中的NSExtension字典中的NSExtensionPointIdentifier键指定了一个值(com.apple.watchkit),该值与已知的扩展点不对应。

com.apple.dt.Xcode[12181] : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7ff46e2dc980 {Error=AppexBundleUnknownExtensionPointIdentifier, ErrorDescription=Appex bundle at /Users//Library/Developer/CoreSimulator/Devices//data/Library/Caches/com.apple.mobile.installd.staging/temp.xmo2ks/extracted/InstallBug.app/PlugIns/InstallBug WatchKit Extension.appex with id com..InstallBug.watchkitextension specifies a value (com.apple.watchkit) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.

我在发行说明中没有看到任何关于这个问题的提及,我想知道这是否是别人的意思遇到过。如果是这样,我需要配置一些其他东西才能使其工作吗?如果没有,我会提交错误报告。

I don't see any mention of this issue in the release notes, and I'm wondering if this is something that others have encountered. If so, is there something else that I need to configure to make this work? If not, I'll file a bug report.

谢谢。

推荐答案

这是Xcode 6.2的已知问题。

This is a known issue with Xcode 6.2.

您可以通过添加MinimumOSVersion=8.2您的Apple Watch扩展程序的Info.plist文件的键值对。

You can workaround it by adding a "MinimumOSVersion" = "8.2" key-value pair to your Apple Watch extensions's Info.plist file.

这篇关于无法在带有Xcode 6.2的iOS 8.1模拟器上使用WatchKit Extension安装App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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