Apple Watch 应用是否需要配套的 iOS 应用才能拥有完整的用户界面?
Do Apple Watch Apps require an accompanying iOS app to have a full user interface?
我在 Apple 的网站上找不到清楚解释的信息。
Apple Watch requires the presence of an iPhone to run third-party
apps. Creation of a third-party app requires two separate bundles: a
WatchKit app that runs on Apple Watch and a WatchKit extension that
runs on the user’s iPhone.
还有
Because a WatchKit app extends the behavior of your existing iOS app,
the WatchKit app and WatchKit extension are bundled together and
packaged inside your iOS app bundle. During installation of your iOS
app, the system prompts the user to install the WatchKit app when a
paired Apple Watch is present.
我认为这意味着要创建一个 Apple Watch 应用程序,我需要先创建一个完整的 iOS 应用程序,其中包含所有 UI、资源和交互。这是一个正确的假设吗?
是的,这个假设是正确的,为了为 Apple Watch 构建应用程序,您需要构建一个附带的 iOS 应用程序。对此的解释实际上在您引用的文档部分中:
Because a WatchKit app extends the behavior of your existing iOS app,
the WatchKit app and WatchKit extension are bundled together and
packaged inside your iOS app bundle.
但是,您对 完整 iOS 应用程序的描述是“所有 UI、资源和交互" 可能有点误导。当然 iOS 应用程序确实有这样的东西,但它使用它们的程度是开发人员关心的(受 Apple 的人机界面指南限制)。所以,术语“full iOS app”听起来有点奇怪,实际上没有任何意义:)
我在 Apple 的网站上找不到清楚解释的信息。
Apple Watch requires the presence of an iPhone to run third-party apps. Creation of a third-party app requires two separate bundles: a WatchKit app that runs on Apple Watch and a WatchKit extension that runs on the user’s iPhone.
还有
Because a WatchKit app extends the behavior of your existing iOS app, the WatchKit app and WatchKit extension are bundled together and packaged inside your iOS app bundle. During installation of your iOS app, the system prompts the user to install the WatchKit app when a paired Apple Watch is present.
我认为这意味着要创建一个 Apple Watch 应用程序,我需要先创建一个完整的 iOS 应用程序,其中包含所有 UI、资源和交互。这是一个正确的假设吗?
是的,这个假设是正确的,为了为 Apple Watch 构建应用程序,您需要构建一个附带的 iOS 应用程序。对此的解释实际上在您引用的文档部分中:
Because a WatchKit app extends the behavior of your existing iOS app, the WatchKit app and WatchKit extension are bundled together and packaged inside your iOS app bundle.
但是,您对 完整 iOS 应用程序的描述是“所有 UI、资源和交互" 可能有点误导。当然 iOS 应用程序确实有这样的东西,但它使用它们的程度是开发人员关心的(受 Apple 的人机界面指南限制)。所以,术语“full iOS app”听起来有点奇怪,实际上没有任何意义:)