macOS-cross-compiler
Dev tools
cross compiler
SHOW HN2024
How HN took it
2 positive, 19 neutral or asking, 0 mixed, 4 critical, out of 25 comments about the project. Thread score -0.07.
Idea: 2 for, 2 againstExecution: 0 for, 1 againstDesign: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful for cross-compiling to macOS from Linux
From 2 comments
This is really cool! I spent the time a couple years back to build a windows sysroot, but having a macOS one was on my mind for a while. Will definitley use
dhash on HNHm, need to give this* a try with NixOS cross compilation for macos. If I could pre-build nix packages for macOS developers on linux build hosts that'd be awesome. *the building…
miduil on HN
Objections
Licensing of the macOS SDK may forbid redistribution on non-Apple hardware
From 3 comments
The problem with this is licensing: the macOS SDK license says that it's only to be used on an "Apple-branded computer". That said I wonder what Apple would do if this is used…
my123 on HNAre they allowed to redistribute the macOS SDK? I assume that Apple’s EULA doesn’t permit that.
sneak on HNGreat to see all of this work brought together like this. I looked into some of these solutions earlier and the licensing status of doing this is pretty grey and likely violates…
mmastrac on HN
Ad-hoc signing untested; code signing needed on Apple Silicon
From 1 comment
> Code signing (but not notarizing) should be possible with this project, but it is untested Code signing is required for aarch64 macs unless they have SIP disabled, so this is…
duped on HN
Requests
Mention rcodesign for signing and notarization
From 1 comment
I feel like a reference to this should be somewhere in the macos-cross-compiler repo.
infogulch on HN
Questions
Can it be used in GitHub Actions or to compile iOS apps?
From 1 comment
Great Project. I have 2 questions: 1. Can this be used to run in a github action? 2. Can this be used to compile ios apps?
mariusbolik on HN
Alternatives named
zig toolchain
From 1 comment
Speaking of cross compilers - I was able to use the zig toolchain in order to cross compile for macos apple silicon, arm Linux, windows x64, windows arm and x86_64 Linux musl…
wyldfire on HN
cargo-zigbuild
From 1 comment
Interestingly you can use zig within your Rust build to more easily cross-compile: https://github.com/rust-cross/cargo-zigbuild I’m curious what the blockers are for rustc to…
vlovich123 on HN
Go cross compilation
From 1 comment
I think the project can easily add Go to the list as cross compiling is built-in: ``` GOOS=darwin GOARCH=arm64 go build -o bin/app-silicon-darwin app.go ```
hamdouni on HN
goreleaser-cross
From 1 comment
I've been using goreleaser-cross for cross-compiling Go apps with cgo https://github.com/goreleaser/goreleaser-cross
wargo on HN
rcodesign
From 1 comment
If you want to codesign and notarize your binary from linux, you can also use rcodesign[0]! I've been using it in production for about a year, and it's been working great so far.…
roblabla on HN