GithubHelp home page GithubHelp logo

Comments (2)

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

from wechattweak-macos.

lscar avatar lscar commented on June 15, 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

from wechattweak-macos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.