Sencha Cmd v7.5.0及以下 不兼容 MacOS Monterey (12.x) 的解决办法

Sencha Cmd 7.6.0+ 应该解决了。


MacOS 升级到 Monterey,运行 Sencha Cmd v7.5.0 会有如下错误

Sencha Cmd v7.5.0.5
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff813dcb6f2, pid=18621, tid=0x000000000000a707
#
# JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libsystem_platform.dylib+0x16f2]  _platform_strlen+0x12
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# [my app folder]/hs_err_pid18621.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 18621 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

和这个错误

2021-12-06 22:10:28.229 java[17909:173895] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007ff813efae5b __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff813c5bb9d objc_exception_throw + 48
    2   Foundation                          0x00007ff814c9126d -[NSPlaceholderString initWithFormat:locale:arguments:] + 295
    3   Foundation                          0x00007ff814c9ff2f +[NSString stringWithFormat:] + 153
    4   Update1478821341979869630.dylib     0x00000001218897a9 wuusgJAD + 553
    5   Update1478821341979869630.dylib     0x0000000121874319 pGgFelzv + 9
    6   Update1478821341979869630.dylib     0x0000000121888ab2 MKNXgAzM + 562
    7   Update1478821341979869630.dylib     0x000000012188795d tyRtaPXr + 61
    8   Update1478821341979869630.dylib     0x00000001218877bb ZWwnJFGw + 283
    9   Update1478821341979869630.dylib     0x0000000121880dc6 Phdl_SDOTFG + 246
    10  Update1478821341979869630.dylib     0x0000000121880e49 Phdl_SDOTF + 25
    11  Update1478821341979869630.dylib     0x000000012186e505 Java_phdl_Phdl_SDOTF + 21
    12  ???                                 0x000000010e0e3407 0x0 + 4530779143
)
libc++abi: terminating with uncaught exception of type NSException
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 17909 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

还有这个

java(18084,0x7000041c5000) malloc: Heap corruption detected, free list is damaged at 0x6000005f3330
*** Incorrect guard value: 105553126503408
java(18084,0x7000041c5000) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/kellerkichel/bin/Sencha/Cmd/sencha: line 167: 18084 Abort trap: 6           $BASEDIR/$VER/sencha "$@"

解决办法

可能是 Sencha Cmd 内置的 JRE 不兼容 Monterey 导致的
官方给出的解决方法是
1、先删除文件 /Users/你的用户名/Library/Application Support/Sencha/Cmd/Update/app.properties
操作系统是中文的话,路径是 /用户/你的用户名/资源库/Application Support/Sencha/Cmd/Update/app.properties
2、在项目的 app.json 里面加一个配置 "bypass_lp": true,,如下
在这里插入图片描述
再次使用 Sencha 命令就正常了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

神秘_博士

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值