You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to ship a golang binary inside a mac app. It is ideally just a http server with some basic functions on folders and files.
The binary seems to work just fine when I run it from a terminal but when I try calling it from my mac app programmatically it gives an error "operation not permitted" and quits.
Even after code-signing with a valid identity file I get the same error.
go build -ldflags -s . codesign -s "Developer ID Application: *** *tesco" binaryFile
I'm trying to ship a golang binary inside a mac app. It is ideally just a http server with some basic functions on folders and files.
The binary seems to work just fine when I run it from a terminal but when I try calling it from my mac app programmatically it gives an error "operation not permitted" and quits.
Even after code-signing with a valid identity file I get the same error.
go build -ldflags -s .
codesign -s "Developer ID Application: *** *tesco" binaryFile
My Golang ENV:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/srinivas/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3n/vpg5bnks45n75n
d91qh7sy3c0000gn/T/go-build925744934=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
The text was updated successfully, but these errors were encountered: