bitrise-io / codesigndoc

Your friendly iOS Code Signing Doctor
MIT License
319 stars 43 forks source link

Fix arm64 build #161

Closed ofalvai closed 2 years ago

ofalvai commented 2 years ago

Wanted to fix the broken arm64 cross-compilation, but ended up only adding a test to make sure cross-compilation works. The real fix is added to Tooling Control Center's release workflow instead, because it needs to be fixed in the workflow, not in code.

The reason cross-compilation fails is that codesigndoc contains C code in the osxkeychain package, and in this case cross-compilation is not working automatically, we need to add CGO_ENALBED=1 to explicitly enable this behavior.