且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WatchKit 应用程序/扩展和 iOS 向后兼容性

更新时间:2023-01-01 17:43:55

Apple 提供了大量有关 WatchKit 应用程序和扩展的信息.我建议你在继续你的项目之前先阅读它们.例如,您可以在 官方文档.

Apple has provided a lot of information about WatchKit apps and extensions. I propose you read them first before going on with your project. For instance, you can find information about the WatchKit architecture and how WatchKit apps and extensions work together with iOS apps in the official docs.

另外,请记住,这些事情可能会在今年晚些时候完全改变.

Also, keep in mind that these things might completely change later this year.

广告 1) 仅生成一个可执行文件,其中包括所有这些部分.用户将像以前一样从 App Store 正常下载您的应用.

Ad 1) Only one executable is generated, which includes all these parts. The user will download your app normally from the App Store as before.

广告 2) 即使包含 WatchKit 应用程序,您的 iOS 应用程序也将在项目中设置的最低 iOS 目标上运行,在您的案例 6.1 中.但是,WatchKit 应用仅适用于 iOS 8.2 及更高版本的用户 - 当然他们需要 Apple Watch.

Ad 2) Your iOS app will run on the lowest iOS target set in your project, in your case 6.1, even though the WatchKit app is included. However, the WatchKit app will only be available to users on iOS 8.2 and above - and of course they need the Apple Watch.