genda_0927
genda_0927
  • 发布:2023-07-11 20:47
  • 更新:2023-10-09 17:56
  • 阅读:1485

【报Bug】HBuilderX 3.8.7,运行 iOS离线打包的自定义基座,没反应

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 10.15.3

HBuilderX版本号: 3.8.7

操作步骤:

3.8.7 版本 运行离线打包的自定义基座,没有反应

预期结果:

可以正常运行

实际结果:

无法运行

bug描述:

3.8.7 版本 运行离线打包的自定义基座,没有反应,具体运行日志见附件

2023-07-11 20:40:06.815 [INFO:] [PluginHost] 正在激活插件launcher...
2023-07-11 20:40:06.819 [WARNING:] QLayout: Attempting to add QLayout "" to MsgItemWidget "MsgItem", which already has a layout
2023-07-11 20:40:07.118 [INFO:] [PluginHost] 插件launcher激活成功。
2023-07-11 20:40:07.119 [INFO:] QObject::destroyed state 0
2023-07-11 20:40:07.147 [WARNING:] [PluginHost] Unhandled Rejection at: Promise {
<rejected> Error: Command failed: xcrun simctl list devices
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

  at ChildProcess.exithandler (node:child_process:400:12)  
  at ChildProcess.emit (node:events:513:28)  
  at maybeClose (node:internal/child_process:1093:16)  
  at Socket.<anonymous> (node:internal/child_process:451:11)  
  at Socket.emit (node:events:513:28)  
  at Pipe.<anonymous> (node:net:757:14) {  
code: 72,  
killed: false,  
signal: null,  
cmd: 'xcrun simctl list devices'  

}
} reason: Error: Command failed: xcrun simctl list devices
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

at ChildProcess.exithandler (node:child_process:400:12)  
at ChildProcess.emit (node:events:513:28)  
at maybeClose (node:internal/child_process:1093:16)  
at Socket.<anonymous> (node:internal/child_process:451:11)  
at Socket.emit (node:events:513:28)  
at Pipe.<anonymous> (node:net:757:14) {  

code: 72,
killed: false,
signal: null,
cmd: 'xcrun simctl list devices'
}

2023-07-11 20:40:07.249 [WARNING:] [PluginHost] Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding

2023-07-11 20:40:07.879 [WARNING:] [PluginHost] Error: Command failed: /Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/mdb_Open list
dyld: Symbol not found: ___darwin_check_fd_set_overflow
Referenced from: /Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/libimobiledevice-glue-1.0.0.dylib (which was built for Mac OS X 13.0)
Expected in: /usr/lib/libSystem.B.dylib

at ChildProcess.exithandler (node:child_process:400:12)  
at ChildProcess.emit (node:events:513:28)  
at maybeClose (node:internal/child_process:1093:16)  
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {  

code: null,
killed: false,
signal: 'SIGABRT',
cmd: '/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/mdb_Open list'
}

2023-07-11 20:40:19.586 [WARNING:] QLayout: Cannot add a null widget to QVBoxLayout/
2023-07-11 20:40:19.587 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2023-07-11 20:40:19.587 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2023-07-11 20:40:22.594 [WARNING:] [PluginHost] Error: Command failed: /Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/mdb_Open list
dyld: Symbol not found: ___darwin_check_fd_set_overflow
Referenced from: /Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/libimobiledevice-glue-1.0.0.dylib (which was built for Mac OS X 13.0)
Expected in: /usr/lib/libSystem.B.dylib

at ChildProcess.exithandler (node:child_process:400:12)  
at ChildProcess.emit (node:events:513:28)  
at maybeClose (node:internal/child_process:1093:16)  
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {  

code: null,
killed: false,
signal: 'SIGABRT',
cmd: '/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/tools/mdb/extension/mdb_Open list'
}

2023-07-11 20:40:23.788 [WARNING:] [PluginHost] Error Code (PluginHost): -32603
2023-07-11 20:40:23.789 [WARNING:] [PluginHost] Error Stack (PluginHost):
2023-07-11 20:40:23.789 [WARNING:] [PluginHost] Request plugin/invokeApi failed with message: Error: Entry doesn't exist
2023-07-11 20:40:23.790 [WARNING:] [PluginHost] at Object.extractEntryTo (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/node_modules/adm-zip/adm-zip.js:526:23)
2023-07-11 20:40:23.790 [WARNING:] [PluginHost] at baseCacheToLocal (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:937:8)
2023-07-11 20:40:23.790 [WARNING:] [PluginHost] at checkCache (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:967:10)
2023-07-11 20:40:23.790 [WARNING:] [PluginHost] at openDeviceListByPlatform (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:1347:8)
2023-07-11 20:40:23.807 [WARNING:] [PluginHost] refreshListData: QJsonValue(null)
2023-07-11 20:42:47.936 [WARNING:] QLayout: Cannot add a null widget to QVBoxLayout/
2023-07-11 20:42:47.937 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2023-07-11 20:42:47.937 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2023-07-11 20:42:49.492 [WARNING:] [PluginHost] Error Code (PluginHost): -32603
2023-07-11 20:42:49.492 [WARNING:] [PluginHost] Error Stack (PluginHost):
2023-07-11 20:42:49.493 [WARNING:] [PluginHost] Request plugin/invokeApi failed with message: Error: Entry doesn't exist
2023-07-11 20:42:49.493 [WARNING:] [PluginHost] at Object.extractEntryTo (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/node_modules/adm-zip/adm-zip.js:526:23)
2023-07-11 20:42:49.493 [WARNING:] [PluginHost] at baseCacheToLocal (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:937:8)
2023-07-11 20:42:49.493 [WARNING:] [PluginHost] at checkCache (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:967:10)
2023-07-11 20:42:49.493 [WARNING:] [PluginHost] at openDeviceListByPlatform (/Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/launcher/out/main.js:1347:8)
2023-07-11 20:42:49.541 [WARNING:] [PluginHost] refreshListData: QJsonValue(null)

2023-07-11 20:47 负责人:DCloud_iOS_WZT 分享
已邀请:

最佳回复

DCloud_iOS_WZT

DCloud_iOS_WZT

Bug已确认 感谢反馈 最近会发版修复

临时解决方案是 在xcode导出的ipa里 新建一个HXDependencies目录

补充:3.91-alpha已修复

  • 哈咯

    这个问题解决了吗?都好久好久了,一直没法用真机

    2023-08-24 11:27

  • 小教

    回复 DCloud_iOS_WZT: 2023-08-31 11:14:55.799 [WARNING:] [PluginHost] Error Code (PluginHost): -32603

    2023-08-31 11:14:55.799 [WARNING:] [PluginHost] Error Stack (PluginHost):

    2023-08-31 11:14:55.800 [WARNING:] [PluginHost] Request plugin/invokeApi failed with message: Error: Entry doesn't exist

    2023-08-31 11:14:55.800 [WARNING:] [PluginHost] at Object.extractEntryTo (E:\HBuilderX\plugins\launcher

    2023-08-31 11:14:55.800 [WARNING:] [PluginHost] ode_modules\adm-zip\adm-zip.js:526:23)

    2023-08-31 11:14:55.800 [WARNING:] [PluginHost] at baseCacheToLocal (E:\HBuilderX\plugins\launcher\out\main.js:937:8)

    2023-08-31 11:14:55.801 [WARNING:] [PluginHost] at checkCache (E:\HBuilderX\plugins\launcher\out\main.js:967:10)

    2023-08-31 11:14:55.801 [WARNING:] [PluginHost] at openDeviceListByPlatform (E:\HBuilderX\plugins\launcher\out\main.js:1347:8)

    2023-08-31 11:14:55.802 [WARNING:] [PluginHost] refreshListData: QJsonValue(null) 3.8.12问题依然存在

    2023-08-31 11:18

  • DCloud_iOS_WZT

    回复 小教: 哦 正式版还没发布修复 先用临时方案解决吧 在ipa里 新建一个HXDependencies目录

    2023-09-01 11:14

j***@vip.qq.com

j***@vip.qq.com

翻了一下插件源码,逻辑是对离线包 ipa 文件解压,解压后会去找 “Payload/HBuilder.app/HXDependencies/” 这样一层文件目录。
其中,我们打的离线包因为xcode的工程里配置的target名称不是 HBuilder, 自然就不对;
但是第三层目录,据我观察,只有云打包里面会有这个玩意儿, 离线打包不知道怎么配置。

  • DCloud_iOS_WZT

    离线导出的ipa新建一个HXDependencies目录即可

    2023-08-04 17:37

Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

看着像第三方插件问题,先注释插件看看

  • genda_0927 (作者)

    第三方插件指的是,自定义基座中的插件,还是 HBuilderX的插件,HBuilderX是新安装的,只有真机调试插件和vue3插件

    2023-07-12 11:27

  • 1***@163.com

    回复 genda_0927: 请问现在正常了吗,我也遇到了一样的问题

    2023-07-13 17:39

  • genda_0927 (作者)

    回复 1***@163.com: 没有,官方也不给回复,无语

    2023-07-13 20:13

DCloud_iOS_WZT

DCloud_iOS_WZT

使用HBuilderX 自定义基座有问题吗

  • genda_0927 (作者)

    点击运行,没有任何反应,连控制台都唤不起来。

    在设备选择窗口,选择自定义基座后,没有提示基座的 bundleID 那一栏

    2023-07-14 11:26

  • DCloud_iOS_WZT

    回复 genda_0927: 你用hx打自定义基座了么 先不要用离线的 用hx打自定义基座试下

    2023-07-14 11:38

  • DCloud_iOS_WZT

    回复 genda_0927: 你离线版本跟 HBuilderX 是同一个版本么

    2023-07-14 11:38

  • genda_0927 (作者)

    回复 DCloud_iOS_WZT: 离线和hbuilderx是同一个,用hx打自定义基座,之前的版本353,3617都没操作过,我来试一下

    2023-07-14 11:59

  • genda_0927 (作者)

    把387的自定义基座,放到 3.6.17 版本的hubilderx中,是可以运行的,那是不是就可以排除掉是自定义基座的问题?

    2023-07-14 12:05

genda_0927

genda_0927 (作者)


箭头处没有显示,自定义基座的bunidle ID

Overclocker

Overclocker

我的情况和楼主一样,看了很多帖子都反馈了这个问题,迄今为止都没有可行的解决方案,希望官方能重视一下

小教

小教 - 教上教

问题解决了吗?升级3.8.7同样遇到这个问题

小教

小教 - 教上教

@DCloud_iOS_WZT 问题什么时候解决 https://ask.dcloud.net.cn/question/174759

2***@qq.com

2***@qq.com

试了下可以了。
这块限制target是hbuildx有点low了啊。。(我还在那对比hbuild打的ipa和我打的有啥区别,看上面说解压后会去找 “Payload/HBuilder.app/HXDependencies/”,顿时给你们个白眼)
项目里建个空HXDependencies文件夹就行,项目add这个文件夹的时候选文件夹引用,别copy就行了。

  • j***@vip.qq.com

    给啥白眼, 事实就是会去找这个目录, 不然你别建这个空目录啊

    2023-10-10 17:51

要回复问题请先登录注册