问题:
尝试使用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/