Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
we1x4n opened this issue May 7, 2024 · 2 comments
Open

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

we1x4n opened this issue May 7, 2024 · 2 comments

Comments

@we1x4n
Copy link

we1x4n commented May 7, 2024

在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

@authorz
Copy link

authorz commented May 10, 2024

在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
啥球都不懂,反正我在这里找到它了,并且能用了,希望能帮上点忙吧

@lscar
Copy link

lscar commented May 21, 2024

在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

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

No branches or pull requests

3 participants