sunnyyoung / WeChatTweak-macOS

A dynamic library tweak for WeChat macOS - 首款微信 macOS 客户端撤回拦截与多开 🔨

Home Page:https://tweaks.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于给tweak降低版本的方法(勉强能用)

we1x4n opened this issue · comments

在App Store中安装xcode,安装完成后打开xcode,同意协议后即可关闭
拉取WeChatTweak-CLI
git clone https://github.com/sunnyyoung/WeChatTweak-CLI.git
修改/WeChatTweak-CLI/Sources/WeChatTweak-CLI/main.swift中第12行代码为
static let url = URL(string: "https://github.com/sunnyyoung/WeChatTweak-macOS/releases/download/1.4.1/WeChatTweak.framework.zip")!
返回项目根目录(即是Sources文件夹的上层目录)执行
swift build -c release --arch arm64 --arch x86_64
cd .build/apple/Products/Release/
chmod +X wechattweak-cli
sudo ./wechattweak-cli install

在App Store中安装xcode,安装完成后打开xcode,同意协议后即可关闭 拉取WeChatTweak-CLI git clone https://github.com/sunnyyoung/WeChatTweak-CLI.git 修改/WeChatTweak-CLI/Sources/WeChatTweak-CLI/main.swift中第12行代码为 static let url = URL(string: "https://github.com/sunnyyoung/WeChatTweak-macOS/releases/download/1.4.1/WeChatTweak.framework.zip")! 返回项目根目录(即是Sources文件夹的上层目录)执行 swift build -c release --arch arm64 --arch x86_64 cd .build/apple/Products/Release/ chmod +X wechattweak-cli sudo ./wechattweak-cli install

执行swift build -c release --arch arm64 --arch x86_64 会报以下错误
error: xcbuild executable at '/Library/Developer/SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild' does not exist or is not executable
用xcode直接编译就好了
默认编译目录在这里
~/Library/Developer/Xcode/DerivedData/WeChatTweak-CLI-bmkjffeuyonhxvfwijyevbvoitif/Build/Products/Debug
啥球都不懂,反正我在这里找到它了,并且能用了,希望能帮上点忙吧

在App Store中安装xcode,安装完成后打开xcode,同意协议后即可关闭 拉取WeChatTweak-CLI git clone https://github.com/sunnyyoung/WeChatTweak-CLI.git 修改/WeChatTweak-CLI/Sources/WeChatTweak-CLI/main.swift中第12行代码为 static let url = URL(string: "https://github.com/sunnyyoung/WeChatTweak-macOS/releases/download/1.4.1/WeChatTweak.framework.zip")! 返回项目根目录(即是Sources文件夹的上层目录)执行 swift build -c release --arch arm64 --arch x86_64 cd .build/apple/Products/Release/ chmod +X wechattweak-cli sudo ./wechattweak-cli install

执行swift build -c release --arch arm64 --arch x86_64 会报以下错误 error: xcbuild executable at '/Library/Developer/SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild' does not exist or is not executable 用xcode直接编译就好了 默认编译目录在这里 ~/Library/Developer/Xcode/DerivedData/WeChatTweak-CLI-bmkjffeuyonhxvfwijyevbvoitif/Build/Products/Debug 啥球都不懂,反正我在这里找到它了,并且能用了,希望能帮上点忙吧

可以解决目录问题,以及No such module "PackageDescription"问题
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer