Featured image of post 苹果系统MacOS微信双开方法

苹果系统MacOS微信双开方法

苹果系统MacOS下微信双开的完整方法,无需安装第三方软件。

操作步骤

1. 复制微信应用

终端执行:

1
sudo cp -R /Applications/WeChat.app /Applications/WeChat2.app

2. 修改 Bundle ID

防止微信检测为同一应用(直接复制下面的内容):

1
sudo /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.tencent.xinWeChat2" /Applications/WeChat2.app/Contents/Info.plist

3. 重新签名应用

终端执行(需输入密码):

1
sudo codesign --force --deep --sign - /Applications/WeChat2.app

4. 启动双开

  • 手动打开第一个微信(原应用)
  • 终端启动第二个:
1
nohup /Applications/WeChat2.app/Contents/MacOS/WeChat >/dev/null 2>&1 &

小提示

  • 第二个终端应用启动后,可以选择右键在程序坞中保留,这样下次直接点程序坞的程序就可以运行了,不需要再次使用终端命令打开第二个微信
  • 用此方法也不影响微信输入法的正常使用