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

Problem:

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

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

The code:

 @IBOutlet var lblPassword: WKInterfaceLabel! lblPassword.setText("hello") 
+10
apple-watch wkinterfacelabel
source share
8 answers

I have the same error, although I am sure that these image files exist.

I just finished Xcode, restarted it, cleaned up the project (+ K command) and built it. He started working again.

I perform this procedure whenever I encounter a new problem. It solves most problems, as you may know. Sorry if you already did this.

+4
source share

Cleaning up the project does not seem to fix the problem. But if you click on the image file, you will see the “Target Membership” options in the right pane. Select all of them, Clear the assembly and try again.

+5
source share

Try, as I could, my images were not uploaded until hours, until I did this directly by "caching", as described in my InterfaceController in the WatchKit extension:

 [[WKInterfaceDevice currentDevice] addCachedImage:[UIImage imageNamed:@"carrota.png"] name:@"carrot"]; [self.portfiolioImage setImageNamed:@"carrot"]; 
0
source share

I assumed that you are adding an image to the asset catalog in WatchKit Extension. This is not true. You must add this image to the asset catalog in the WatchKit app. Sorry, I cannot add an image here.

0
source share

It seems to me that you added “hello” as the name of the image somewhere in the storyboard. Use the Xcode search dialog to find hello. It will also show the use as the image name.

0
source share

Screen Shot 1

Ok So, the main thing to note here is that “you don’t want to drag and drop images into AssetCatalog” ... the only way this worked for me is to manually right-click on the directory (as shown in screenshot 1 and “Add Files” .... find the image you want to add on the local / external drive (make sure that only “WatchKit App” is selected in the “Add to Target” section), as shown in the screenshot in Screen Shot 2) and add the images!

Screen shot 2

0
source share

I had the same problem. Solution: I exedently linked the group giving birth to WKInterfaceLabel. Try setting YOURSUPPOSEDLABLE.setTextColor (.brown), if its background changes, you linked the group.

0
source share

None of the answers here are relevant. Like you, even if I do not have images, and whenever I assign text to a label, it registers that it cannot find the name of the image with this text. Definitely a mistake.

0
source share

All Articles