levie-vans / WeChatAssistant-ForMac

Mac微信功能拓展/微信插件/微信小助手(A plugin for Mac WeChat)独立加载版。微信双开助手。
248 stars 39 forks source link

请问如何手动执行这些步骤? #4

Closed Ninzero closed 3 years ago

Ninzero commented 3 years ago

系统版本: macOS Big Sur 11.5.1 (20G80) 微信版本: 3.1.5 (18846) 使用 Homebrew 安装

具体步骤:

  1. 首先下载 WeChatExtension-ForMac, 将其中 Rely/Plugin/WeChatExtension/WeChatExtension.framework 和 Rely/Plugin/WeChatExtension/WeChatExtension.framework/WeChatExtension 分别重命名为 AFNetworking.framework 和 AFNetworking
  2. 在 Terminal 中执行 codesign --force --deep --sign - '/Users/Ninzero/Documents/WeChatExtension-ForMac/WeChatExtension/Rely/Plugin/WeChatExtension/AFNetworking.framework/AFNetworking'
  3. export DYLD_INSERT_LIBRARIES='/Users/Ninzero/Documents/WeChatExtension-ForMac/WeChatExtension/Rely/Plugin/WeChatExtension/AFNetworking.framework/AFNetworking'
  4. nohup /Applications/WeChat.app/Contents/MacOS/WeChat > /tmp/wechat.txt 2>&1 &

此时微信被打开, 但没有微信小助手, 以下为 /tmp/wechat.txt 内容

objc[27044]: Class AFHTTPSessionManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691008) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c491c8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFNetworkReachabilityManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112690f68) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49268). One of the two will be used. Which one is undefined.
objc[27044]: Class AFSecurityPolicy is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112690fb8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c492b8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFQueryStringPair is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691148) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49308). One of the two will be used. Which one is undefined.
objc[27044]: Class AFHTTPRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691198) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49358). One of the two will be used. Which one is undefined.
objc[27044]: Class AFStreamingMultipartFormData is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126911c0) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49380). One of the two will be used. Which one is undefined.
objc[27044]: Class AFMultipartBodyStream is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691210) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c493d0). One of the two will be used. Which one is undefined.
objc[27044]: Class AFHTTPBodyPart is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691238) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c493f8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFJSONRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126912d8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49498). One of the two will be used. Which one is undefined.
objc[27044]: Class AFPropertyListRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691328) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c494e8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFHTTPResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691378) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49538). One of the two will be used. Which one is undefined.
objc[27044]: Class AFJSONResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126913c8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49588). One of the two will be used. Which one is undefined.
objc[27044]: Class AFXMLParserResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691418) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c495d8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFXMLDocumentResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691468) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49628). One of the two will be used. Which one is undefined.
objc[27044]: Class AFPropertyListResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126914b8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49678). One of the two will be used. Which one is undefined.
objc[27044]: Class AFImageResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691508) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c496c8). One of the two will be used. Which one is undefined.
objc[27044]: Class AFCompoundResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691558) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49718). One of the two will be used. Which one is undefined.
objc[27044]: Class AFURLSessionManagerTaskDelegate is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x112691058) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49768). One of the two will be used. Which one is undefined.
objc[27044]: Class _AFURLSessionTaskSwizzling is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126910d0) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c497e0). One of the two will be used. Which one is undefined.
objc[27044]: Class AFURLSessionManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1126910f8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c49808). One of the two will be used. Which one is undefined.
objc[27044]: Class MarsReachability is implemented in both /Applications/WeChat.app/Contents/Frameworks/matrixreport.framework/Versions/A/matrixreport (0x112813740) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x110c527b8). One of the two will be used. Which one is undefined.
2021-07-29 15:31:54.799 WeChat[27044:916847] Event: kMMLoginEventUseOneClickLogin, from state: stateStart to state: stateShowingOneClick
2021-07-29 15:31:58.125 WeChat[27044:916847] Event: kMMLoginEventOneClickRequestSent, from state: stateShowingOneClick to state: stateWaittingConfirm
2021-07-29 15:32:07.083 WeChat[27044:916847] Event: kMMLoginEventOneClickRequestConfirmed, from state: stateWaittingConfirm to state: stateLoggingIn
<CFData 0x7fb631a71850 [0x7fff80851b70]>{length = 6, capacity = 6, bytes = 0xa483e7855bed}
[SQLITERK_OK] Saved master info with 113 entries.
2021-07-29 15:32:07.679 WeChat[27044:916847] <MMSplitView: 0x7fb631e15030>: the delegate <MMMainViewController: 0x7fb631e12900> was sent -splitView:resizeSubviewsWithOldSize: and left the arranged view frames in an inconsistent state:
2021-07-29 15:32:07.679 WeChat[27044:916847] Split view bounds: {{0, 0}, {770, 638}}
2021-07-29 15:32:07.679 WeChat[27044:916847]     Arranged view frame: {{0, 0}, {269, 638}}
2021-07-29 15:32:07.679 WeChat[27044:916847]     Arranged view frame: {{270, 0}, {501, 638}}
2021-07-29 15:32:07.679 WeChat[27044:916847] The outer edges of the arranged view frames are supposed to line up with the split view's bounds' edges. NSSplitView is working around the problem, perhaps at the cost of more redrawing. (This message is only logged once per NSSplitView.)
<CFData 0x7fb62bc836b0 [0x7fff80851b70]>{length = 6, capacity = 6, bytes = 0xa483e7855bed}
[SQLITERK_OK] Saved master info with 131 entries.
[SQLITERK_OK] Saved master info with 87 entries.
[SQLITERK_OK] Saved master info with 125 entries.
2021-07-29 15:32:08.130 WeChat[27044:916847] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fb632fde9b0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
[SQLITERK_OK] Saved master info with 115 entries.
[SQLITERK_OK] Saved master info with 91 entries.
[SQLITERK_OK] Saved master info with 109 entries.
[SQLITERK_OK] Saved master info with 71 entries.
[SQLITERK_OK] Saved master info with 113 entries.
[SQLITERK_OK] Saved master info with 79 entries.
2021-07-29 15:33:14.865 WeChat[27044:916847] Alive 5
2021-07-29 15:34:54.880 WeChat[27044:916847] Alive 10

此外, Release 中的 WeChat Assistant.app 下载安装后显示安装包已损坏, 原因未知.

levie-vans commented 3 years ago

可能你要把改名后的AFNetworking.framework/AFNetworking重签一下? WeChat Assistant.app 应该是需要重签

Ninzero commented 3 years ago

我在第一步中改名, 第二步重签名了, 依然无法使用.

levie-vans commented 3 years ago

我在第一步中改名, 第二步重签名了, 依然无法使用.

我的macOS是关闭SIP的了,不知道这个有没有影响

Ninzero commented 3 years ago

唔, 这样…

qiuyulcc commented 3 years ago

我在第一步中改名, 第二步重签名了, 依然无法使用.

我的macOS是关闭SIP的了,不知道这个有没有影响

嗯 好像可以了 关闭了sip就OK了