Skip to content

Can't build for MacOS amd64/arm64 #7

@MaestroError

Description

@MaestroError

Hi! I am trying to build app (php-heic-to-jpg) on linux (Ubuntu) for MacOS and getting error for both architectures

ios/amd64

Command:
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o "bin/heicToJpg-ios-amd64" github.com/MaestroError/php-heic-to-jpg
Error:

# runtime/cgo
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized command line option '-arch'

ios/arm64

Command:
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o "bin/heicToJpg-ios-arm64" github.com/MaestroError/php-heic-to-jpg
Error:

# runtime/cgo
gcc: error: arm64: No such file or directory
gcc: error: unrecognized command line option '-arch'

Please, tell me If you will need any other information about the error from me. I am sure we can solve this problem 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions