apple-watchwkinterfacelabel

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


Problem:

Trying to set the WKInterfaceLabel text using xCode 6.2 but it returns this error:

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

Code:

@IBOutlet var lblPassword: WKInterfaceLabel!

lblPassword.setText("hello")

Solution

  • I got the same error although I am pretty sure these image files exist.

    I just terminated Xcode, relaunched it, cleaned the project (command + K) and built it. It started to work again.

    I do this routine whenever I face a new problem. It solves most of the problems as you might know. Sorry if you have done it already.