gpt4 book ai didi

ios - 为什么我的 Apple Watch 模拟器是黑色的?

转载 作者:行者123 更新时间:2023-11-29 12:22:38 24 4
gpt4 key购买 nike

我需要创建一个 watchkit 应用程序。请让我知道是否可以使用 watch kit 创建一个单独的应用程序,或者我们是否必须使用扩展来做到这一点。

我正在模拟器中测试我的应用程序。 iPhone 模拟器和 Apple Watch 模拟器都即将推出。 Apple Watch 模拟器是黑色的,没有屏幕出现。我的系统硬盘:320 GB,内存:5 GB。

最佳答案

如果您还没有读过这篇文章,请看一看。简而言之,目前看来您只能使用扩展来实现这一目标。

This article解释他们对您作为第 3 方 watch 应用开发者的期望。

Apple Watch requires the presence of an iPhone to run third-party apps. To create a third-party app, you need two separate bundles: a WatchKit app (that runs on Apple Watch) and a WatchKit extension (that runs on the user’s iPhone). The WatchKit app contains only the storyboards and resource files associated with your app’s user interface. The WatchKit extension contains the code for managing the WatchKit app’s user interface and for responding to user interactions.

还有

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.

关于ios - 为什么我的 Apple Watch 模拟器是黑色的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30160713/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com