apple-watch - WatchKit扩展[4608 :145616] Unable to find image named "hello" on Watch

标签 apple-watch wkinterfacelabel

问题:

尝试使用xCode 6.2设置WKInterfaceLabel文本,但它返回此错误:

WatchKit Extension[4608:145616] Unable to find image named "hello" on Watch

代码:
@IBOutlet var lblPassword: WKInterfaceLabel!

lblPassword.setText("hello")

最佳答案

尽管我非常确定这些图像文件存在,但我遇到了同样的错误。

我只是终止了Xcode,重新启动了它,清理了项目(命令+ K)并构建了它。它再次开始工作。

每当遇到新问题时,我都会执行此例程。如您所知,它可以解决大多数问题。抱歉,如果您已经做过。

关于apple-watch - WatchKit扩展[4608 :145616] Unable to find image named "hello" on Watch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29270218/

相关文章:

watchkit - WatchOS2 - 有没有办法水平滚动标签?

swift - 在 WKInterfaceTable 行中放置一个图像和两个标签

ios - WatchKit 检测标签/组上的点击/触摸

ios - 如何将数据从一个 WKInterfaceController 推送到另一个?

swift - 如何使用 setAttributedText 为 WKInterface 标签设置对齐方式

ios - 以编程方式检查Apple Watch是否在手腕上?

ios - 解析不是从 iPhone 发送的可操作通知

logging - 如何从 Apple Watch 检索 os_log 条目?

ios - 为什么 EmptyView() 不能在带有 SwiftUI 的 WatchOS 上运行?

ios - Apple Watch WCSession 返回 watchAppInstalled false