Search code examples
tizentizen-wearable-sdk

SIGNATURE_INVALID when trying to run my project in Samsung Watch


I see there is a question here in SO, but the proposed answer (deleting .metadata folder) does not work for my case.

Here is what I did:

First, I had a certificate file (once I generated a certificate signing request file, and was given a certificate file for that). I used that .crt file, but since I had deleted other files in that folder, had to create another .csr file along with other required files (By generating another certificate signing request file).
Then I requested for a device profile, and used the given device-profile.xml and password for registering the certificate.
This process went through successfully, so I am assuming there is nothing wrong with the unusual way I took here for the certificate.

Then I imported a project I was given in Tizen IDE. Clicked 'Permit to install applications' on the device and it was successful.

Then I right-clicked on my project and selected > Run As Tizen Wearable Web Application. Here I am getting SIGNATURE_INVALID error. Any suggestions?


Solution

  • I have also had some byzantine errors with the wearable sdk where many straightforward processes like this fail. I think the SIGNATURE_INVALID error normally suggests that you may not have added your gear device DUID or permitted to install application (which you have done). Are you testing with a real Gear device, and can you confirm if you added the device DUID whilst requesting your device profile ? Another thing I have found is that when you register the author.crt and device-profile.xml using the register certificate button on the tizen wearable sdk, it is important that the names of these files have NOT changed - e.g author(1).crt or device-profile(1).xml . Finally, if you have tried all of this, I would recommend you restart the process ...

    1. Make sure the watch's time is correct.
    2. Delete existing security profile .. winwows->preferences->Tizen sdk->Security profiles
    3. Close IDE
    4. Delete workspace metadata
    5. Relaunch IDE, Generate new keys, request new certificate, request new device profile, register certificates.
    6. Attempt to run your app again

      Good luck.