在Visual Studio中进行Tizen开发时,遇到“初始化调试器”对话框卡住了。

3

我在VS 2019中启动了一个新的TizenWearableApp,启动了Tizen模拟器并点击运行。

Tizen的输出显示构建成功,并使用默认证书对应用程序进行了签名。此后,打印的最后一行是.tpk文件的完整路径和一个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

我希望有人能够帮我解决这个问题(几个月前我已经在这台机器上解决了这个问题)。
提前致谢。

我忘了提到,整个问题发生在我尝试在连接的手表或模拟器上运行/调试应用程序时。 - MortnMX
该消息还显示了“处理结果:操作不允许[-4]失败”。您可以搜索错误,我发现可能是您没有正确安装默认证书。尝试使用此答案此答案 - Itban Saeed
你解决了这个问题吗?我也遇到了同样的问题。 - Element Zero
2个回答

3
这里是帮助我的页面。我遇到了同样的问题,但不想每次都从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,然后应该可以使用证书构建。


1

遇到了相同的问题。原因是证书签名使用了错误的分发商 - 对于物理设备(不是模拟器),您需要使用三星分发商证书。您需要执行以下操作:

  1. 在Tizen包管理器中安装三星证书扩展
  2. 打开证书管理器
  3. 运行证书配置向导并选择三星选项
  4. 按照向导进行操作

参考https://dev59.com/RZzha4cB1Zd3GeqPJbg5#40755444


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接