简体   繁体   English

在Xcode6.2的iOS 7设备上运行带有WatchKit Extension的iOS App

[英]Run iOS App with WatchKit Extension on iOS 7 device in Xcode6.2

My iOS app has a deployment target of 7.0 and my WatchKit App of 8.2. 我的iOS应用程序的部署目标为7.0,而WatchKit应用程序的部署目标为8.2。

Xcode won't allow me to run the iOS app on an iOS 7 device. Xcode不允许我在iOS 7设备上运行iOS应用。 It says my WatchKit App has a deployment target of 8.2 so it can't run on an iOS 7 device. 它说我的WatchKit App的部署目标为8.2,因此无法在iOS 7设备上运行。 If I change the deployment target of the WatchKit App then the project fails to build. 如果我更改WatchKit App的部署目标,则该项目将无法构建。

How can I run an app from Xcode with a WatchKit App on iOS 7? 如何在iOS 7上使用WatchKit应用程序从Xcode运行应用程序?

在此处输入图片说明

iOS 7 has no support for the Apple Watch. iOS 7不支持Apple Watch。
Setting your deployment target to iOS 7 does allow to install the main app on that platform but that app does still only support the Watch on iOS 8 devices. 将部署目标设置为iOS 7确实可以在该平台上安装主应用程序,但是该应用程序仍然仅支持iOS 8设备上的Watch。

Chose an iOS 8.x simulator, and it should work. 选择一个iOS 8.x模拟器,它应该可以工作。 You also need to have the right set of Provisioning Profiles for debug (and release) configured - at least for me automatic stopped to work on Xcode 6.3. 您还需要为调试(和发布)配置正确的配置文件集-至少对我而言,自动停止才能在Xcode 6.3上工作。

It looks like you are trying to launch the "PhotoMind WatchKit App" target. 您似乎正在尝试启动“ PhotoMind WatchKit App”目标。 Is this the watchkit app? 这是watchkit应用程序吗? Try switching the target to the iPhone app. 尝试将目标切换到iPhone应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM