简体   繁体   English

将Apple Watch添加到具有部署目标IOS 7的iOS应用程序

[英]Add Apple Watch to iOS app that has deployment target IOS 7

When I try to add Apple Watch to my project that support IOS 7+, I get an error that in order to add Apple Watch deployment target should be minimum 8.2 When I checked instagram, it provides Apple Watch support and they support IOS 7 also. 当我尝试将Apple Watch添加到支持IOS 7+的项目时,我收到一个错误,为了添加Apple Watch部署目标应该是最小的8.2当我检查Instagram时,它提供Apple Watch支持,他们也支持IOS 7。 How can I add Apple Watch and at the same time run app on IOS 7 devices also. 如何添加Apple Watch并同时在IOS 7设备上运行应用程序。

Instagram的

Instagram的描述。它说7.0或更高

您的部署目标可以是iOS 7.0,但您必须使用iOS 8.2 SDK或更高版本构建应用程序。

I think you are confused between Deployment Target and Build SDK . 我认为您在Deployment TargetBuild SDK之间感到困惑。

You can select the Deployment Target to iOS7 + 您可以选择Deployment TargetiOS7 +

And you can also Build it using iOS 8.2 SDK 您还可以使用iOS 8.2 SDK构建它

Just select the Deployment Target like this : 只需像这样选择Deployment Target

Apple Watch的部署目标

And the Architecture to iOS 8.2 or 8.3 iOS 8.2或8.3Architecture

为Apple Watch构建SDK

You should have some deprecated warnings. 你应该有一些不赞成的警告。

deployment target must be 8.2 for the apple watch app target and apple watch extention. 对于Apple Watch app目标和Apple Watch扩展,部署目标必须为8.2。

And make sure that the Valid Architectures have arm64 for all watch target. 并确保有效架构的arm64适用于所有监视目标。

在此输入图像描述

Found solution to the problem. 找到问题的解决方案。 It was actually a bug in Xcode 6.3. 这实际上是Xcode 6.3中的一个错误。 For some reason Xcode wanted deployment target of WatchKit App (and Not our app target ) to be exactly 8.2 出于某种原因,Xcode希望WatchKit App(而不是我们的应用目标 )的部署目标正好是8.2

Changing "iOS Deployment Target" field in build settings of Watchkit app target to 8.2 as mentioned here solved the issue. 在Watchkit应用目标构建设置更改“iOS的部署目标”字段8.2 这里提到解决的问题。

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

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