Open we1x4n opened 5 months ago
在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
在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