尝试在Samsung Gear 2上安装应用程序时为SIGNATURE_INVALID [英] SIGNATURE_INVALID when trying to install application on Samsung Gear 2
问题描述
向三星注册以获得开发者证书后,我无法安装我的应用程序,但我收到SIGNATURE_INVALID(代码22).
After registering with samsung for a developer certificate i can't install my application, i'm getting SIGNATURE_INVALID (code 22).
该应用程序可以是任何东西,包括IDE向导中的hello world应用程序.
The application can be anything, including a hello world app from the IDE wizard.
有趣的是,在收到三星发来的电子邮件并安装密钥之前,我已经部署了hello world应用程序,并且可以正常工作.无法再重复此操作.
What's interesting is that before getting an email back from Samsung and instaling the key, I have deployed a hello world app and it worked. Can't duplicate this no more.
从IDE登录:
Launching the Tizen application...
# If you want to see the detailed information,
# please set the logging level to DEBUG in Preferences and check the log file in '(...)'.
[Initializing the launch environment...]
RDS: On
Target information: SM-R380
Application information: Id(p8BYHTMfs6.Pilot), Package Name(p8BYHTMfs6), Project Name(Pilot)
[Transferring the package...]
Repackaging is in progress before the package transfer.
Transferred the package: (...)/tizen/Pilot.wgt -> /opt/usr/apps/tmp
[Stopping running application...]
[Installing the package...]
path is /opt/usr/apps/tmp/Pilot.wgt
start process (install)
....
error : 22
end process (fail)
processing result : SIGNATURE_INVALID [22] failed
spend time for pkgcmd is [1798]ms
cmd_ret:22
[Transferring the package...]
Repackaging is in progress before the package transfer.
Transferred the package: (...)/tizen/Pilot.wgt -> /opt/usr/apps/tmp
path is /opt/usr/apps/tmp/Pilot.wgt
start process (install)
....
error : 22
end process (fail)
processing result : SIGNATURE_INVALID [22] failed
spend time for pkgcmd is [1824]ms
cmd_ret:22
Unexpected stop progress...
(12.17 sec)
以及尝试使用sdb
时:
$ sdb install Pilot.wgt
pushed Pilot.wgt 100% 3MB
1 file(s) pushed. 0 file(s) skipped.
Pilot.wgt 2813 KB/s (3512786 bytes in 1.219s)
path is /opt/usr/apps/tmp/Pilot.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[install_percent] val[3]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[install_percent] val[22]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[install_percent] val[25]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[install_percent] val[33]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[error] val[22]
__return_cb req_id[1] pkg_type[wgt] pkgid[p8BYHTMfs6] key[end] val[fail]
processing result : SIGNATURE_INVALID [22] failed
spend time for pkgcmd is [1758]ms
有趣的事情:
[2014.09.02 16:53:58][WARN ] SignCommand.java(91) - Cannot remove a file. Path : (...)/tizen/.build/Result Resource Layer/author-signature.xml
[2014.09.02 16:53:58][WARN ] SignCommand.java(91) - Cannot remove a file. Path : (...)/tizen/.build/Result Resource Layer/signature1.xml
(...)
[2014.09.02 16:54:06][DEBUG] SdbCommand.java(203) - $ /usr/bin/pkgcmd -i -q -t wgt -p "/opt/usr/apps/tmp/Pilot.wgt"
[2014.09.02 16:54:08][DEBUG] SdbCommand.java(203) - $ rm -f /opt/usr/apps/tmp/Pilot.wgt
[2014.09.02 16:54:08][DEBUG] ZimLaunchDelegate.java(240) -
Error code: SIGNATURE_INVALID
Error message:
Command: /usr/bin/pkgcmd -i -q -t wgt -p "/opt/usr/apps/tmp/Pilot.wgt"
Management: Check author certificates in Preferences > Tizen SDK > Secure Profiles > Profile items.
[2014.09.02 16:54:08][DEBUG] LaunchesListener.java(187) - removed - project: Pilot, device serial: 529f31b34100626c
[2014.09.02 16:54:08][PERFORM_E] ZimLaunchDelegate.java(277) - [Category: web.launch] at 2014-09-02 16:54:08.967 [12170(ms)]
我尝试过的一些事情:
Some of the things i tried:
- 该证书用于IDE生成的正确设备ID.尝试过两次与三星签约.
- 该证书会自动复制到gear的
/home/developer
. - 我可以使用
sdb
安装示例.wgt
文件. - 该项目已多次清理,IDE和Gear重新启动,Gear已重置.
- The certificate is for the correct device id, generated by the IDE. Tried two times to sign with Samsung.
- The certificate is automaticaly copied to gear's
/home/developer
. - I can install the sample
.wgt
files usingsdb
. - The project was cleaned multiple times, IDE and Gear restarted, Gear has been reset.
我的系统:
- OSX山狮
- 安装管理器tizen-wearable-sdk-2.2.151_macos64.bin中的Tizen IDE(当前)
- Tizen SDK for Wearable,版本:1.0.0b2,内部版本号:20140411-1445(当前)
- 三星Gear 2(SM-R380),固件R380XXU0BNE5(当前)
关于如何修复我的设置以使其能够再次开发的任何想法?
Any idea on how to fix my setup to be able to develop again?
推荐答案
叹了..现在我知道我没有检查的内容-删除工作空间元数据已修复设置.浪费一天的好方法.
Sigh.. now i know what i did not check - removing the workspace metadata fixed the setup. Great way to waste a day.
如果有人感兴趣,甚至没有使用工作区(项目保留在单独的目录中)
If anyone is interested, the workspace was not even used (projects remained in separate dirs)
这篇关于尝试在Samsung Gear 2上安装应用程序时为SIGNATURE_INVALID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!