Skip to content

config: add version 34888/36559/36571/36603/36677/37261 support#1003

Open
hangone wants to merge 8 commits intosunnyyoung:masterfrom
hangone:master
Open

config: add version 34888/36559/36571/36603/36677/37261 support#1003
hangone wants to merge 8 commits intosunnyyoung:masterfrom
hangone:master

Conversation

@hangone
Copy link
Copy Markdown

@hangone hangone commented Mar 12, 2026

patch 无效的下载这个版本 wechattweak
然后

chmod +x wechattweak
./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/master/config.json

网络错误的用这个地址 wechattweak

chmod +x wechattweak
./wechattweak patch -c https://ghfast.top/https://github.com/hangone/WeChatTweak/raw/master/config.json

双开需要在终端输入

open -n /Applications/WeChat.app

微信下载链接
https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.100_37261.dmg

https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.67_36677.dmg
https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.29_36603.dmg
https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.28_36571.dmg
https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.8.27_36559.dmg
https://dldir1v6.qq.com/weixin/Universal/Mac/xWeChatMac_universal_4.1.7.57_34888.dmg

Copilot AI review requested due to automatic review settings March 12, 2026 20:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for WeChat version 34888 by extending the patch configuration so the CLI can match this app version and apply the expected binary patches.

Changes:

  • Added a new version: "34888" block to config.json.
  • Defined arm64 patch entries for multiple targets (e.g., revoke, updater/update-check related hooks, multi-instance).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hangone hangone changed the title config: add version 34888 support config: add version 34888/36559 support Mar 14, 2026
@hangone hangone changed the title config: add version 34888/36559 support config: add version 34888/36559/36571 support Mar 14, 2026

static func patch(app: URL, config: Config) async throws {
try Patcher.patch(binary: app.appendingPathComponent("Contents/MacOS/WeChat"), config: config)
let dylibURL = app.appendingPathComponent("Contents/Frameworks/wechat.dylib")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wechat.dylib?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, starting from version 4.1.8, the logic resides within wechat.dylib.

@char1eslu
Copy link
Copy Markdown

➜ Downloads wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json
------ Version ------
WeChat version: 36571
------ Config ------
Matched config: Config(version: "36571", targets: [WeChatTweak.Config.Target(identifier: "revoke", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 68052944, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startUpdater", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1833552, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startBackgroundUpdatesCheck", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1843004, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "checkForUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1842284, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "enableAutoUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1844060, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "automaticallyDownloadsUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1871736, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "canCheckForUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1871752, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "multiInstance", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1801644, asm: 8 bytes)])])
------ Patch ------
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x40e67d0, fileoff=0x41e67d0
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1bfa50, fileoff=0x2bfa50
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c1f3c, fileoff=0x2c1f3c
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c1c6c, fileoff=0x2c1c6c
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c235c, fileoff=0x2c235c
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c8f78, fileoff=0x2c8f78
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c8f88, fileoff=0x2c8f88
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1b7dac, fileoff=0x2b7dac
Done!
------ Resign ------
Done!
➜ Downloads patch成功,但是防撤回失败唉😮‍💨

@hangone
Copy link
Copy Markdown
Author

hangone commented Mar 16, 2026

patch成功,但是防撤回失败唉😮‍💨

#1003 (comment)

@char1eslu
Copy link
Copy Markdown

patch成功,但是防撤回失败唉😮‍💨

用这个版本 wechattweak 然后 ./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

谢谢,已成功✌️

@bycszzz
Copy link
Copy Markdown

bycszzz commented Mar 18, 2026

补丁成功,但是防撤回失败唉😮‍💨

使用这个版本 wechattweak然后./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

raycast插件无法使用问题 ,大佬可以解决吗

@24aeae7f3f1ff6a5
Copy link
Copy Markdown

感谢大佬付出,辛苦了!@hangone

@waterWang
Copy link
Copy Markdown

patch成功,但是防撤回失败唉😮‍💨

用这个版本 wechattweak 然后 ./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

patch成功,但是防撤回失败唉😮‍💨

用这个版本 wechattweak 然后 ./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

image image 为什么微信上还是没有 登录新的微信功能

@minorlai
Copy link
Copy Markdown

我也是同样的问题,依然没有patch 成功

@hangone
Copy link
Copy Markdown
Author

hangone commented Mar 19, 2026

我也是同样的问题,依然没有patch 成功

需要在终端输入

open -n /Applications/WeChat.app

@hangone hangone changed the title config: add version 34888/36559/36571 support config: add version 34888/36559/36571/36603 support Mar 21, 2026
@Cheinpo
Copy link
Copy Markdown

Cheinpo commented Mar 22, 2026

我也是同样的问题,依然没有patch 成功

需要在终端输入

open -n /Applications/WeChat.app

patch 成功了,但是防撤回并没有生效,36603版本,使用的最新的config.json
image
也使用了open -n /Applications/WeChat.app
image
image

@hangone
Copy link
Copy Markdown
Author

hangone commented Mar 22, 2026

我也是同样的问题,依然没有patch 成功

需要在终端输入

open -n /Applications/WeChat.app

patch 成功了,但是防撤回并没有生效,36603版本,使用的最新的config.json

image

也使用了open -n /Applications/WeChat.app

image image

参看最上面的描述

@iXiaoChuan
Copy link
Copy Markdown

patch成功,但是防撤回失败唉😮‍💨

用这个版本 wechattweak 然后 ./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

谢谢,已成功✌️

下载下来不是可执行脚本,直接执行./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json,会报错:zsh: permission denied: ./wechattweak;给了sudo权限也没有用,哥们这个问题有遇到么?

@iXiaoChuan
Copy link
Copy Markdown

patch成功,但是防撤回失败唉😮‍💨

用这个版本 wechattweak 然后 ./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

谢谢,已成功✌️

下载下来不是可执行脚本,直接执行./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json,会报错:zsh: permission denied: ./wechattweak;给了sudo权限也没有用,哥们这个问题有遇到么?

已解决,直接加可执行权限就行了 chmod +x

@hangone hangone changed the title config: add version 34888/36559/36571/36603 support config: add version 34888/36559/36571/36603/36677 support Mar 27, 2026
@fredericky123
Copy link
Copy Markdown

防撤回成功,但是没有消息提醒,看不出撤回了什么,是正常的吗

@hangone
Copy link
Copy Markdown
Author

hangone commented Mar 29, 2026

防撤回成功,但是没有消息提醒,看不出撤回了什么,是正常的吗

正常,作者没做撤回提示

@fzlzjerry
Copy link
Copy Markdown

所以为啥这个不被merge, 作者还维护吗, 如果不维护的话, 那就去佬的仓库开pr了

@kylin-kai
Copy link
Copy Markdown

./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json

------ Version ------
WeChat version: 34888
------ Config ------

Done!
------ Resign ------
Error: executing: xattr -cr /Applications/WeChat.app error: {
NSAppleScriptErrorAppName = wechattweak;
-z: compress or decompress (if compressed) attribute value in zip format";
-z: compress or decompress (if compressed) attribute value in zip format";
NSAppleScriptErrorNumber = 64;
NSAppleScriptErrorRange = "NSRange: {0, 52}";
}

@minorlai
Copy link
Copy Markdown

minorlai commented Apr 3, 2026

wechattweak patch
------ Version ------
WeChat version: 36677
------ Config ------
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character 'Y' around line 1, column 1." UserInfo={NSDebugDescription=Unexpected character 'Y' around line 1, column 1., NSJSONSerializationErrorIndex=0})))

@hangone hangone changed the title config: add version 34888/36559/36571/36603/36677 support config: add version 34888/36559/36571/36603/36677/37261 support Apr 4, 2026
@hangone hangone mentioned this pull request Apr 4, 2026
@char1eslu
Copy link
Copy Markdown

4.1.8.100_37261版本好像语音转文字失败,暂时退回4.1.8.67_36677了

@hangone
Copy link
Copy Markdown
Author

hangone commented Apr 7, 2026

4.1.8.100_37261版本好像语音转文字失败,暂时退回4.1.8.67_36677了

我这测试没问题

@char1eslu
Copy link
Copy Markdown

4.1.8.100_37261版本好像语音转文字失败,暂时退回4.1.8.67_36677了

我这测试没问题

那好吧😂,谢谢大佬,不知道是不是我这边网络不稳定啥的,重新安装100版本也不行,还是用67旧版,等下一版本我再试一试看,谢谢

@minorlai
Copy link
Copy Markdown

minorlai commented Apr 9, 2026

已经快要放弃使用了,更新 4.x 微信以后就没成功过
wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json
------ Version ------
WeChat version: 37261
------ Config ------
Matched config: Config(version: "37261", targets: [WeChatTweak.Config.Target(identifier: "revoke", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 68847052, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startUpdater", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1839764, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startBackgroundUpdatesCheck", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1849216, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "checkForUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1848496, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "enableAutoUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1850272, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "automaticallyDownloadsUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877948, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "canCheckForUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877964, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "multiInstance", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1807784, asm: 8 bytes)])])
------ Patch ------
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x41a85cc, fileoff=0x42a85cc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c1294, fileoff=0x2c1294
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c3780, fileoff=0x2c3780
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c34b0, fileoff=0x2c34b0
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1c3ba0, fileoff=0x2c3ba0
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1ca7bc, fileoff=0x2ca7bc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1ca7cc, fileoff=0x2ca7cc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000
[arm64] patch VA=0x1b95a8, fileoff=0x2b95a8
Done!
------ Resign ------
Done!
allen@MacBook-M3-Pro ~ % wechattweak patch
------ Version ------
WeChat version: 37261
------ Config ------
Error: Unsupported WeChat version

@klacee
Copy link
Copy Markdown

klacee commented Apr 9, 2026

已经快要放弃使用了,更新 4.x 微信以后就没成功过 wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/refs/heads/master/config.json ------ Version ------ WeChat version: 37261 ------ Config ------ Matched config: Config(version: "37261", targets: [WeChatTweak.Config.Target(identifier: "revoke", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 68847052, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startUpdater", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1839764, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startBackgroundUpdatesCheck", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1849216, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "checkForUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1848496, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "enableAutoUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1850272, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "automaticallyDownloadsUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877948, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "canCheckForUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877964, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "multiInstance", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1807784, asm: 8 bytes)])]) ------ Patch ------ [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x41a85cc, fileoff=0x42a85cc [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1c1294, fileoff=0x2c1294 [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1c3780, fileoff=0x2c3780 [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1c34b0, fileoff=0x2c34b0 [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1c3ba0, fileoff=0x2c3ba0 [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1ca7bc, fileoff=0x2ca7bc [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1ca7cc, fileoff=0x2ca7cc [arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x100000 [arm64] patch VA=0x1b95a8, fileoff=0x2b95a8 Done! ------ Resign ------ Done! allen@MacBook-M3-Pro ~ % wechattweak patch ------ Version ------ WeChat version: 37261 ------ Config ------ Error: Unsupported WeChat version

你用错命令了啊,把最顶上的wechattweak下下来,
在下下来的目录里执行:chmod +x wechattweak
./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/master/config.json

不就可以了。刚更新的4.1.8.100,没问题的。
Downloads % chmod +x wechattweak
./wechattweak patch -c https://github.com/hangone/WeChatTweak/raw/master/config.json
------ Version ------
WeChat version: 37261
------ Config ------
Matched config: Config(version: "37261", targets: [WeChatTweak.Config.Target(identifier: "revoke", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 68847052, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startUpdater", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1839764, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "startBackgroundUpdatesCheck", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1849216, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "checkForUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1848496, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "enableAutoUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1850272, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "automaticallyDownloadsUpdates", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877948, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "canCheckForUpdate", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1877964, asm: 8 bytes)]), WeChatTweak.Config.Target(identifier: "multiInstance", entries: [WeChatTweak.Config.Entry(arch: WeChatTweak.Config.Arch.arm64, addr: 1807784, asm: 8 bytes)])])
------ Patch ------
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x41a85cc, fileoff=0xda605cc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1c1294, fileoff=0x9a79294
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1c3780, fileoff=0x9a7b780
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1c34b0, fileoff=0x9a7b4b0
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1c3ba0, fileoff=0x9a7bba0
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1ca7bc, fileoff=0x9a827bc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1ca7cc, fileoff=0x9a827cc
[arm64] vmaddr=0x0, fileoff=0x0, sliceoff=0x98b8000
[arm64] patch VA=0x1b95a8, fileoff=0x9a715a8
Done!
------ Resign ------
Done!

@minorlai
Copy link
Copy Markdown

minorlai commented Apr 10, 2026

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.