3 ms·
Does this not need any xcode/macos license?
by deknos 3y ago
Does this not need any xcode/macos license?
- schleck8 3y agoWhy would it? You can cross compile for macos with the go toolchain on Linux too and that doesn't even require an additional compiler. Just GOOS=darwin GOARCH=arm64 and then the regular command. Apple can't regulate everything
- adastra22 3y agoIf you need the macOS SDK, then you need to obey the developer licensing rules. Does this need the SDK?
- duskwuff 3y agoOnly if you're using cgo. If you're building native Go code, the Go compiler is fully self-contained and can target any supported platform from anywhere -- macOS from Linux, Linux from Windows, Android from FreeBSD, you name it.
- breather 3y agoThe most obvious answer is you need the system frameworks to link against.