3

II 在 VS 2019 中启动了一个新的 TizenWearableApp,启动了 Tizen-Emulator 并点击运行。

Tizen 的输出显示成功构建,并且应用程序已使用默认证书进行签名。之后,最后打印的行是 .tpk 文件的完整路径和带有“Initializing Debugger”的 Microsoft Visual Studio 对话框...卡住状态截图 -> https://imgur.com/a/91sEknd

之后没有任何事情发生。我可以按下取消按钮,然后可以在输出中看到以下对我没有帮助的内容:

: <<< Start debugging "org.tizen.example.TizenWearableAppV4" >>>
: Try to terminate running application: org.tizen.example.TizenWearableAppV4
: No application to be terminated: 255
    WARNING: Your data are to be sent over an unencrypted connection and could be read by others.
    pushed org.tizen.example.TizenWearableAppV4-1.0.0.tpk     0%          0KB       0KB/s
    pushed org.tizen.example.TizenWearableAppV4-1.0.0.tpk   100%         19KB       0KB/s
    1 file(s) pushed. 0 file(s) skipped.
    D:\repos\Tizen\TizenWearableAppV4\TizenWearableAppV4\bin\Debug\tizen40\org.tizen.example.TizenWearableAppV4-1.0.0.tpk   447KB/s (19702 bytes in 0.042s)
    path is /home/owner/share/tmp/sdk_tools/org.tizen.example.TizenWearableAppV4-1.0.0.tpk
    processing result : Operation not allowed [-4] failed
Package found on the target system: "lldb-3.8.1-i686" (tar.gz)
 : Launching org.tizen.example.TizenWearableAppV4
 : 'org.tizen.example.TizenWearableAppV4' is dependent on 'org.tizen.example.TizenWearableAppV4-1.0.0.tpk'.
 : ... launch failed

我希望任何人都可以帮助我解决这个问题(几个月前我已经在这台机器上工作了)。

提前致谢。

4

2 回答 2

3

https://github.com/Samsung/build-task-tizen/blob/master/doc/tizen.net.sdk-signing-tpk.md

这是帮助我的页面。我有同样的问题,但不想每次都从 tizen.bat 构建。上述文档中对我有用的解决方案是关闭 Visual Studio 并在我的解决方案中打开 *.csproj 文件,然后添加以下内容,替换为我创建的证书和密码的目录:

<PropertyGroup>
 <AuthorPath>author_test.p12</AuthorPath>
 <AuthorPass>author_test</AuthorPass>
 <DistributorPath>tizen-distributor-signer.p12</DistributorPath>
 <DistributorPass>tizenpkcs12passfordsigner</DistributorPass>
</PropertyGroup>

只需将其放在任何其他属性组标签下方。再次打开 Visual Studio,它应该使用证书构建。

于 2020-09-07T20:13:57.553 回答
1

面对一样。原因是使用错误的经销商签署的证书 - 对于物理设备(未模拟),您需要三星经销商证书。你需要做:

  1. 在 Tizen 包管理器中安装三星证书扩展
  2. 打开证书管理器
  3. 运行证书配置文件向导并选择三星选项
  4. 跟随向导

参考https://stackoverflow.com/a/40755444/4165898

于 2020-11-05T07:16:21.847 回答