prife / hdc

fork from https://gitee.com/openharmony/developtools_hdc
Apache License 2.0
0 stars 0 forks source link

hdc 版本 #2

Open prife opened 4 months ago

prife commented 4 months ago

/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB1/openharmony/toolchains/hdc

如果出现

$hdc list targets
[F][2024-07-01 22:36:00] connect failed status:-61

执行下面命令,重启hdc server

hdc start -r

然后即可正常发现模拟器

prife commented 4 months ago

版本变更

$ /Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB1/openharmony/toolchains/hdc --version
Ver: 3.0.0b

该版本在以下代码中定义:

image
commit 80f4e5c4e0f382c1d80da5998e606a969e43809b
Author: wenlong_12 <wenlong12@huawei.com>
Date:   Tue May 21 17:25:32 2024 +0800

    modify hdc cpp version number to 3.0.0c

    Signed-off-by: wenlong_12 <wenlong12@huawei.com>
    Change-Id: Iac29357784800449da5a8ebbd697ca32772bf7d4

diff --git a/src/common/define.h b/src/common/define.h
index 24b8eea..0c9ad49 100644
--- a/src/common/define.h
+++ b/src/common/define.h
@@ -84,8 +84,8 @@ constexpr uint16_t CMD_FILE_PENULT_PARAM = 2;
 // |----------------------------------------------------------------|
 // | major |reserve| minor |reserve|version|  fix  |   reserve      |
 // |----------------------------------------------------------------|
-// 0x30000100 is 3.0.0b
-constexpr uint32_t HDC_VERSION_NUMBER = 0x30000100;
+// 0x30000200 is 3.0.0c
+constexpr uint32_t HDC_VERSION_NUMBER = 0x30000200;
 constexpr uint32_t HDC_BUF_MAX_BYTES = INT_MAX;
 #ifdef HDC_HOST
 constexpr uint32_t HOST_SOCKETPAIR_SIZE = 1024 * 1024;