如何使用 watchOS 2 SDK 构建应用程序 [英] How to build an application with the watchOS 2 SDK
问题描述
在我们最后一次提交申请时,我们收到了这个警告:
In the last submission of our application, we have received this warning :
无效的 WatchKit 支持 - 从 2018 年 4 月 1 日起,所有提交到 App Store 的 Apple Watch 应用程序都必须使用 watchOS 2 SDK 或更高版本构建
Invalid WatchKit Support - Starting April 1, 2018, all apps submitted to the App Store for Apple Watch must be built with the watchOS 2 SDK or later
我的问题是想知道如何使用 watchOS 2 SDK 构建应用程序?
My question is to know how to to build the application with the watchOS 2 SDK?
我认为这足以用 XCODE 9 构建.
I was thinking that is enough to build with XCODE 9.
谢谢.
推荐答案
检查您的部署目标.很可能它没有通过使用较新版本的 Xcode 进行更新.
Check your Deployment Target. It's likely it wasn't updated just by using a newer version of Xcode.
还可以尝试在 Watch Extension 的 Build Settings 中检查 Base SDK,以确保它是最新的.
Also try checking Base SDK in Build Settings of your Watch Extension to make sure it is up to date.
这篇关于如何使用 watchOS 2 SDK 构建应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!