问题描述
我有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文件包含以下消息:
我在发行说明中没有看到任何关于这个问题的提及,我想知道这是否是别人的意思遇到过。如果是这样,我需要配置一些其他东西才能使其工作吗?如果没有,我会提交错误报告。
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$来解决此问题c $ c>您的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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!